contextual_contextual_links_view_alter

contextual_contextual_links_view_alter(&$element, $items) Implements hook_contextual_links_view_alter(). See also \Drupal\contextual\Plugin\views\field\ContextualLinks::render() File core/modules/contextual/contextual.module, line 147 Adds contextual links to perform actions related to elements on a page. Code function contextual_contextual_links_view_alter(&$element, $items) { if (isset($element['#contextual_links']['contextual'])) { $encoded_links = $element['#contextual_link

FormAjaxSubscriber::__construct

public FormAjaxSubscriber::__construct(FormAjaxResponseBuilderInterface $form_ajax_response_builder, TranslationInterface $string_translation) Constructs a new FormAjaxSubscriber. Parameters \Drupal\Core\Form\FormAjaxResponseBuilderInterface $form_ajax_response_builder: The form AJAX response builder. \Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation. File core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 41 Class FormAjaxS

ImmutableConfig::set

public ImmutableConfig::set($key, $value) Sets a value in this configuration object. Parameters string $key: Identifier to store value in configuration. mixed $value: Value to associate with identifier. Return value $this The configuration object. Throws \Drupal\Core\Config\ConfigValueException If $value is an array and any of its keys in any depth contains a dot. Overrides Config::set File core/lib/Drupal/Core/Config/ImmutableConfig.php, line 26 Class ImmutableConfig Defines the immuta

EntityTypeModerationRouteProvider::getModerationFormRoute

protected EntityTypeModerationRouteProvider::getModerationFormRoute(EntityTypeInterface $entity_type) Gets the moderation-form route. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. Return value \Symfony\Component\Routing\Route|null The generated route, if available. File core/modules/content_moderation/src/Routing/EntityTypeModerationRouteProvider.php, line 38 Class EntityTypeModerationRouteProvider Provides the moderation configuration routes for confi

FieldStorageConfigListBuilder::buildRow

public FieldStorageConfigListBuilder::buildRow(EntityInterface $field_storage) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/FieldStorageConfigListBuilder.php, line 96 Class FieldStorageConfigListBu

BaseFieldDefinition::getProvider

public BaseFieldDefinition::getProvider() Returns the name of the provider of this field. Return value string The provider name; e.g., the module name. Overrides FieldStorageDefinitionInterface::getProvider File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 195 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function getProvider() { return isset($this->definition['provider']) ? $this->definition['provider'] : NUL

DatabaseQueue::catchException

protected DatabaseQueue::catchException(\Exception $e) Act on an exception when queue might be stale. If the table does not yet exist, that's fine, but if the table exists and yet the query failed, then the queue is stale and the exception needs to propagate. Parameters $e: The exception. Throws \Exception If the table exists the exception passed in is rethrown. File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 272 Class DatabaseQueue Default queue implementation. Namespace Drup

TypedDataManagerInterface::getValidator

public TypedDataManagerInterface::getValidator() Gets the validator for validating typed data. Return value \Symfony\Component\Validator\Validator\ValidatorInterface The validator object. File core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php, line 171 Class TypedDataManagerInterface Defines an interface for typed data manager. Namespace Drupal\Core\TypedData Code public function getValidator();

EntityTypeInterface::getLinkTemplates

public EntityTypeInterface::getLinkTemplates() Gets the link templates using the URI template syntax. Links are an array of standard link relations to the URI template that should be used for them. Where possible, link relationships should use established IANA relationships rather than custom relationships. Every entity type should, at minimum, define "canonical", which is the pattern for URIs to that entity. Even if the entity will have no HTML page exposed to users it should still have a cano

EntityDisplayRepository::getFormModes

public EntityDisplayRepository::getFormModes($entity_type_id) Gets the entity form mode info for a specific entity type. Parameters string $entity_type_id: The entity type whose form mode info should be returned. Return value array The form mode info for a specific entity type. Overrides EntityDisplayRepositoryInterface::getFormModes File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 91 Class EntityDisplayRepository Provides a repository for entity display objects (view m