MenuLinkManagerInterface::updateDefinition

public MenuLinkManagerInterface::updateDefinition($id, array $new_definition_values, $persist = TRUE) Updates the values for a menu link definition in the menu tree storage. This will update the definition for a discovered menu link without the need for a full rebuild. It is also used for plugins not found through discovery to update definitions. Parameters string $id: The menu link plugin ID. array $new_definition_values: The new values for the link definition. This will usually be just a sub

SearchPageRepositoryInterface::isSearchActive

public SearchPageRepositoryInterface::isSearchActive() Returns whether search is active. Return value bool TRUE if at least one search is active, FALSE otherwise. File core/modules/search/src/SearchPageRepositoryInterface.php, line 24 Class SearchPageRepositoryInterface Provides the interface for a repository Search Page entities. Namespace Drupal\search Code public function isSearchActive();

ModerationStateTransitionListBuilder::render

public ModerationStateTransitionListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides DraggableListBuilder::render File core/modules/content_moderation/src/ModerationStateTransitionListBuilder.php, line 94 Class ModerationStateTransitionListBuilder Provides a listing of Moderation state transition entities. Namespace Drupal\content_moderation Code public function render() { $build = p

DatabaseBackend::setMultiple

public DatabaseBackend::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, see Cach

EntityAccessControlHandler::$accessCache

Stores calculated access check results. Type: array File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 21 Class EntityAccessControlHandler Defines a default implementation for entity access control handler. Namespace Drupal\Core\Entity Code protected $accessCache = array();

hook_tour_tips_info_alter

hook_tour_tips_info_alter(&$info) Allow modules to alter tip plugin definitions. Parameters array $info: The array of tip plugin definitions, keyed by plugin ID. See also \Drupal\tour\Annotation\Tip Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/tour/tour.api.php, line 37 Describes API functions for tour module. Code function hook_tour_tips_info_alter(&$info) { // Swap out the class used for this tip plugin. if (isset($info['tex

ConfigEvents::IMPORT_VALIDATE

Name of the event fired when validating imported configuration. This event allows modules to perform additional validation operations when configuration is being imported. The event listener method receives a \Drupal\Core\Config\ConfigImporterEvent instance. See also \Drupal\Core\Config\ConfigImporterEvent \Drupal\Core\Config\ConfigImporter::validate(). \Drupal\Core\EventSubscriber\ConfigImportSubscriber::onConfigImporterValidate(). Related topics Events Overview of event dispatch and subscrib

ElementInterface::setAttributes

public static ElementInterface::setAttributes(&$element, $class = array()) Sets a form element's class attribute. Adds 'required' and 'error' classes as needed. Parameters array $element: The form element. array $class: Array of new class names to be added. File core/lib/Drupal/Core/Render/Element/ElementInterface.php, line 50 Class ElementInterface Provides an interface for render element plugins. Namespace Drupal\Core\Render\Element Code public static function setAttributes(&

EntityBundleListener::__construct

public EntityBundleListener::__construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler) Constructs a new EntityBundleListener. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info. \Drupal\Core

SqlContentEntityStorage::getDataTable

public SqlContentEntityStorage::getDataTable() Gets the data table name. Return value string|false The table name or FALSE if it is not available. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 222 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Core\Entity\Sql Code public function getDataTable() { return $this->dataTable; }