ControllerBase::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 47 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $entityManager;

SelectInterface::getArguments

public SelectInterface::getArguments(PlaceholderInterface $queryPlaceholder = NULL) Compiles and returns an associative array of the arguments for this prepared statement. Parameters $queryPlaceholder: When collecting the arguments of a subquery, the main placeholder object should be passed as this parameter. Return value An associative array of all placeholder arguments for this query. File core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 163 Class SelectInterface Interface

MenuTreeParameters::setRoot

public MenuTreeParameters::setRoot($root) Sets a root for menu tree loading. @codeCoverageIgnore Parameters string $root: A menu link plugin ID, or empty string '' to use the root of the whole tree. Return value $this File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 87 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public function setRoot($root) { $this->root = (string) $root; return $this; }

NodeInterface::setPromoted

public NodeInterface::setPromoted($promoted) Sets the node promoted status. Parameters bool $promoted: TRUE to set this node to promoted, FALSE to set it to not promoted. Return value \Drupal\node\NodeInterface The called node entity. File core/modules/node/src/NodeInterface.php, line 78 Class NodeInterface Provides an interface defining a node entity. Namespace Drupal\node Code public function setPromoted($promoted);

FieldConfigEditForm::$entity

The entity being used by this form. Type: \Drupal\field\FieldConfigInterface Overrides EntityForm::$entity File core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 25 Class FieldConfigEditForm Provides a form for the field settings form. Namespace Drupal\field_ui\Form Code protected $entity;

MenuTreeStorage::preSave

protected MenuTreeStorage::preSave(array &$link, array $original) Fills in all the fields the database save needs, using the link definition. Parameters array $link: The link definition to be updated. array $original: The link definition before the changes. May be empty if not found. Return value array The values which will be stored. Throws \Drupal\Component\Plugin\Exception\PluginException Thrown when the specific depth exceeds the maximum. File core/lib/Drupal/Core/Menu/MenuTreeStorag

YamlDiscovery::decode

protected YamlDiscovery::decode($file) Decode a YAML file. Parameters string $file: Yaml file path. Return value array File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 79 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected function decode($file) { return Yaml::decode(file_get_contents($file)) ? : []; }

color_get_info

color_get_info($theme) Retrieves the Color module information for a particular theme. File core/modules/color/color.module, line 139 Allows users to change the color scheme of themes. Code function color_get_info($theme) { static $theme_info = array(); if (isset($theme_info[$theme])) { return $theme_info[$theme]; } $path = drupal_get_path('theme', $theme); $file = \Drupal::root() . '/' . $path . '/color/color.inc'; if ($path && file_exists($file)) { include $file

MetadataBag::clearCsrfTokenSeed

public MetadataBag::clearCsrfTokenSeed() Clear the CSRF token seed. File core/lib/Drupal/Core/Session/MetadataBag.php, line 54 Class MetadataBag Provides a container for application specific session metadata. Namespace Drupal\Core\Session Code public function clearCsrfTokenSeed() { unset($this->meta[static::CSRF_TOKEN_SEED]); }

BookManagerInterface::checkNodeIsRemovable

public BookManagerInterface::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. File core/modules/book/src/BookManagerInterface.php, line 294 Class