ParamConverterManagerInterface::convert

public ParamConverterManagerInterface::convert(array $defaults) Invokes the registered converter for each defined parameter on a route. Parameters array $defaults: The route defaults array. Return value array The modified defaults. Throws \Drupal\Core\ParamConverter\ParamNotConvertedException If one of the assigned converters returned NULL because the given variable could not be converted. File core/lib/Drupal/Core/ParamConverter/ParamConverterManagerInterface.php, line 59 Class ParamCon

template_preprocess_menu_local_action

template_preprocess_menu_local_action(&$variables) Prepares variables for single local action link templates. Default template: menu-local-action.html.twig. Parameters array $variables: An associative array containing: element: A render element containing: #link: A menu link array with 'title', 'url', and (optionally) 'localized_options' keys. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 65 A

ModerationStateInterface

Provides an interface for defining Moderation state entities. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\content_moderation\ModerationStateInterface File core/modules/content_moderation/src/ModerationStateInterface.php, line 10 Namespace Drupal\content_moderation Members Name Modifiers Type Description AccessibleInterface::

file_file_download

file_file_download($uri) Implements hook_file_download(). File core/modules/file/file.module, line 590 Defines a "managed_file" Form API field and a "file" field for Field module. Code function file_file_download($uri) { // Get the file record based on the URI. If not in the database just return. /** @var \Drupal\file\FileInterface[] $files */ $files = entity_load_multiple_by_properties('file', array('uri' => $uri)); if (count($files)) { foreach ($files as $item) { // Sin

config_translation_help

config_translation_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/config_translation/config_translation.module, line 15 Configuration Translation module. Code function config_translation_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.config_translation': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Configuration Translation

BookManager::checkNodeIsRemovable

public BookManager::checkNodeIsRemovable(NodeInterface $node) Determines if a node can be removed from the book. A node can be removed from a book if it is actually in a book and it either is not a top-level page or is a top-level page with no children. Parameters \Drupal\node\NodeInterface $node: The node to remove from the outline. Return value bool TRUE if a node can be removed from the book, FALSE otherwise. Overrides BookManagerInterface::checkNodeIsRemovable File core/modules/book/src/B

Merge::keys

public Merge::keys(array $fields, array $values = array()) Sets the key fields to be used as conditions for this query. This method should only be called once. It may be called either with a single associative array or two indexed arrays. If called with an associative array, the keys are taken to be the fields and the values are taken to be the corresponding values to set. If called with two arrays, the first array is taken as the fields and the second array is taken as the corresponding values

ShortcutSetAccessControlHandler

Defines the access control handler for the shortcut set entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\shortcut\ShortcutSetAccessControlHandler See also \Drupal\shortcut\Entity\ShortcutSet File core/modules/shortcut/src/ShortcutSetAccessControlHandler.php, line 15 Namespace Drupal\shortcut Member

BookManagerInterface::deleteFromBook

public BookManagerInterface::deleteFromBook($nid) Deletes node's entry from book table. Parameters int $nid: The nid to delete. File core/modules/book/src/BookManagerInterface.php, line 237 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function deleteFromBook($nid);

SqlContentEntityStorageSchema::updateSharedTableSchema

protected SqlContentEntityStorageSchema::updateSharedTableSchema(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Updates the schema for a field stored in a shared table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field being updated. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original storage definition; i.e., the definition before the update. Throws \Dr