SubstitutionManagerInterface.php 554 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Drupal\linkit;
  3. use Drupal\Component\Plugin\PluginManagerInterface;
  4. /**
  5. * An interface for the substitution manager.
  6. */
  7. interface SubstitutionManagerInterface extends PluginManagerInterface {
  8. /**
  9. * Get the default substitution.
  10. */
  11. const DEFAULT_SUBSTITUTION = 'canonical';
  12. /**
  13. * Get a form API options list for the entity ID.
  14. *
  15. * @param string $entity_type_id
  16. * The entity type ID.
  17. *
  18. * @return array
  19. * An options list.
  20. */
  21. public function getApplicablePluginsOptionList($entity_type_id);
  22. }