EntityManager::loadEntityByUuid

public EntityManager::loadEntityByUuid($entity_type_id, $uuid) Overrides EntityRepositoryInterface::loadEntityByUuid Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 358 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function loadEntityByUuid($entity_type_id, $uuid) { return $this->container->get('entity.repository')->l

BlockContent::postSave

public BlockContent::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bo

template_preprocess_book_node_export_html

template_preprocess_book_node_export_html(&$variables) Prepares variables for single node export templates. Default template: book-node-export-html.html.twig. Parameters array $variables: An associative array containing the following keys: node: The node that will be output. children: All the rendered child nodes within the current node. Defaults to an empty string. File core/modules/book/book.module, line 495 Allows users to create and organize related content in an outline. Code fu

ConditionInterface::notExists

public ConditionInterface::notExists($field, $langcode = NULL) Queries for the existence of a field. Parameters string $field: Return value ConditionInterface; See also \Drupal\Core\Entity\Query\QueryInterface::notexists() File core/lib/Drupal/Core/Entity/Query/ConditionInterface.php, line 56 Class ConditionInterface Defines the entity query condition interface. Namespace Drupal\Core\Entity\Query Code public function notExists($field, $langcode = NULL);

book_theme

book_theme() Implements hook_theme(). File core/modules/book/book.module, line 57 Allows users to create and organize related content in an outline. Code function book_theme() { return array( 'book_navigation' => array( 'variables' => array('book_link' => NULL), ), 'book_tree' => array( 'variables' => array('items' => array(), 'attributes' => array()), ), 'book_export_html' => array( 'variables' => array('title' => NULL, 'c

comment_ranking

comment_ranking() Implements hook_ranking(). File core/modules/comment/comment.module, line 757 Enables users to comment on published content. Code function comment_ranking() { return \Drupal::service('comment.statistics')->getRankingInfo(); }

ShortcutSet::resetLinkWeights

public ShortcutSet::resetLinkWeights() Resets the link weights in a shortcut set to match their current order. This function can be used, for example, when a new shortcut link is added to the set. If the link is added to the end of the array and this function is called, it will force that link to display at the end of the list. Return value \Drupal\shortcut\ShortcutSetInterface The shortcut set. Overrides ShortcutSetInterface::resetLinkWeights File core/modules/shortcut/src/Entity/ShortcutSet.

Drupal::setContainer

public static Drupal::setContainer(ContainerInterface $container) Sets a new global container. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: A new container instance to replace the current. File core/lib/Drupal.php, line 109 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function setContainer(ContainerInterface $container) { static::$container = $container; }

ConfigDependencies::__construct

public ConfigDependencies::__construct(array $format_providers, array $auth_providers) Creates a new ConfigDependencies instance. Parameters string[] $format_providers: The serialization format providers, keyed by format. string[] $auth_providers: The authentication providers, keyed by ID. File core/modules/rest/src/Entity/ConfigDependencies.php, line 38 Class ConfigDependencies Calculates rest resource config dependencies. Namespace Drupal\rest\Entity Code public function __construct

MenuParentFormSelector::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Menu/MenuParentFormSelector.php, line 31 Class MenuParentFormSelector Default implementation of the menu parent form selector service. Namespace Drupal\Core\Menu Code protected $entityManager;