menu--toolbar.html.twig

Default theme implementation to display a toolbar menu. Available variables: menu_name: The machine name of the menu. items: A nested list of menu items. Each menu item contains: attributes: HTML attributes for the menu item. below: The menu item child items. title: The menu link title. url: The menu link url, instance of \Drupal\Core\Url localized_options: Menu link localized options. is_expanded: TRUE if the link has visible children within the current menu tree. is_collapsed: TRUE

TranslationsStream::getType

public static TranslationsStream::getType() Returns the type of stream wrapper. Return value int Overrides LocalStream::getType File core/modules/locale/src/StreamWrapper/TranslationsStream.php, line 18 Class TranslationsStream Defines a Drupal translations (translations://) stream wrapper class. Namespace Drupal\locale\StreamWrapper Code public static function getType() { return StreamWrapperInterface::LOCAL_HIDDEN; }

StateTransitionValidation::getTransitionsFrom

protected StateTransitionValidation::getTransitionsFrom($state_name) Returns a list of possible transitions from a given state. This list is based only on those transitions that exist, not what transitions are legal in a given context. Parameters string $state_name: The machine name of the state from which we are transitioning. Return value ModerationStateTransition[] A list of possible transitions from a given state. File core/modules/content_moderation/src/StateTransitionValidation.php, lin

ListDataDefinition::$itemDefinition

The data definition of a list item. Type: \Drupal\Core\TypedData\DataDefinitionInterface File core/lib/Drupal/Core/TypedData/ListDataDefinition.php, line 15 Class ListDataDefinition A typed data definition class for defining lists. Namespace Drupal\Core\TypedData Code protected $itemDefinition;

ListDataDefinition::createFromDataType

public static ListDataDefinition::createFromDataType($type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data type, fo

BookManager::updateOriginalParent

protected BookManager::updateOriginalParent(array $original) Updates the has_children flag of the parent of the original node. This method is called when a book link is moved or deleted. So we want to update the has_children flag of the parent node. Parameters array $original: The original link whose parent we want to update. Return value bool TRUE if the update was successful (either there was no original parent to update, or the original parent was updated successfully), FALSE on failure. F

ContextualLinksPlaceholder::preRenderPlaceholder

public static ContextualLinksPlaceholder::preRenderPlaceholder(array $element) Pre-render callback: Renders a contextual links placeholder into #markup. Renders an empty (hence invisible) placeholder div with a data-attribute that contains an identifier ("contextual id"), which allows the JavaScript of the drupal.contextual-links library to dynamically render contextual links. Parameters array $element: A structured array with #id containing a "contextual id". Return value array The passed-in

MatcherDumper::schemaDefinition

protected MatcherDumper::schemaDefinition() Defines the schema for the router table. Return value array The schema API definition for the SQL storage table. File core/lib/Drupal/Core/Routing/MatcherDumper.php, line 198 Class MatcherDumper Dumps Route information to a database table. Namespace Drupal\Core\Routing Code protected function schemaDefinition() { $schema = [ 'description' => 'Maps paths to various callbacks (access, page and title)', 'fields' => [ 'name

ListDataDefinition::getDataType

public ListDataDefinition::getDataType() Returns the data type of the data. Return value string The data type. Overrides DataDefinition::getDataType File core/lib/Drupal/Core/TypedData/ListDataDefinition.php, line 58 Class ListDataDefinition A typed data definition class for defining lists. Namespace Drupal\Core\TypedData Code public function getDataType() { return 'list'; }

hook_config_import_steps_alter

hook_config_import_steps_alter(&$sync_steps, \Drupal\Core\Config\ConfigImporter $config_importer) Alter the configuration synchronization steps. Parameters array $sync_steps: A one-dimensional array of \Drupal\Core\Config\ConfigImporter method names or callables that are invoked to complete the import, in the order that they will be processed. Each callable item defined in $sync_steps should either be a global function or a public static method. The callable should accept a $context array