MenuLinkTree::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 43 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees. Namespace Drupal\Core\Menu Code protected $controllerResolver;

DrupalKernel::$booted

Whether the kernel has been booted. Type: bool File core/lib/Drupal/Core/DrupalKernel.php, line 118 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected $booted = FALSE;

FinishResponseSubscriber::setExpiresNoCache

protected FinishResponseSubscriber::setExpiresNoCache(Response $response) Disable caching in ancient browsers and for HTTP/1.0 proxies and clients. HTTP/1.0 proxies do not support the Vary header, so prevent any caching by sending an Expires date in the past. HTTP/1.1 clients ignore the Expires header if a Cache-Control: max-age= directive is specified (see RFC 2616, section 14.9.3). Parameters \Symfony\Component\HttpFoundation\Response $response: A response object. File core/lib/Drupal/Core/E

BookManager::buildItems

protected BookManager::buildItems(array $tree) Builds the #items property for a book tree's renderable array. Helper function for ::bookTreeOutput(). Parameters array $tree: A data structure representing the tree. Return value array The value to use for the #items property of a renderable menu. File core/modules/book/src/BookManager.php, line 533 Class BookManager Defines a book manager. Namespace Drupal\book Code protected function buildItems(array $tree) { $items = []; foreach

FileSystem::dirname

public FileSystem::dirname($uri) Gets the name of the directory from a given path. PHP's dirname() does not properly pass streams, so this function fills that gap. It is backwards compatible with normal paths and will use PHP's dirname() as a fallback. Compatibility: normal paths and stream wrappers. Parameters string $uri: A URI or path. Return value string A string containing the directory name. Overrides FileSystemInterface::dirname See also dirname() https://www.drupal.org/node/515192 Fi

DiscoverableInterface

Interface for classes providing a type of discovery. Hierarchy interface \Drupal\Component\Discovery\DiscoverableInterface File core/lib/Drupal/Component/Discovery/DiscoverableInterface.php, line 8 Namespace Drupal\Component\Discovery Members Name Modifiers Type Description DiscoverableInterface::findAll public function Returns an array of discoverable items.

FormState::isMethodType

public FormState::isMethodType($method_type) Returns the HTTP form method. Parameters string $method_type: The HTTP form method. Return value bool TRUE if the HTTP form method matches. Overrides FormStateInterface::isMethodType See also \Drupal\Core\Form\FormState::$method File core/lib/Drupal/Core/Form/FormState.php, line 597 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function isMethodType($method_type) { return $this->

EntityInterface::preSave

public EntityInterface::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave 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. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field translation

StorageComparerInterface::hasChanges

public StorageComparerInterface::hasChanges() Checks if there are any operations with changes to process. Until the changelist has been calculated this will always be FALSE. Return value bool TRUE if there are changes to process and FALSE if not. See also \Drupal\Core\Config\StorageComparerInterface::createChangelist() File core/lib/Drupal/Core/Config/StorageComparerInterface.php, line 75 Class StorageComparerInterface Defines an interface for comparison of configuration storage objects.

User::setEmail

public User::setEmail($mail) Sets the email address of the user. Parameters string $mail: The new email address of the user. Return value \Drupal\user\UserInterface The called user entity. Overrides UserInterface::setEmail File core/modules/user/src/Entity/User.php, line 229 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function setEmail($mail) { $this->get('mail')->value = $mail; return $this; }