ThemeInitialization

Provides the theme initialization logic. Hierarchy class \Drupal\Core\Theme\ThemeInitialization implements ThemeInitializationInterface File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 13 Namespace Drupal\Core\Theme Members Name Modifiers Type Description ThemeInitialization::$cache protected property The cache backend to use for the active theme. ThemeInitialization::$extensions protected property The extensions that might be attaching assets. The

StatusMessages::getInfo

public StatusMessages::getInfo() Generate the placeholder in a #pre_render callback, because the hash salt needs to be accessed, which may not yet be available when this is called. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/StatusMessages.php, line 27 Class StatusMessages Provides a messages element. Namespace Drupal\Core\Render\Element Code public function getInfo() { return [ // May have a value of 'status' or 'error' when only displaying mess

ImageStyleInterface::setName

public ImageStyleInterface::setName($name) Sets the name of the image style. Parameters string $name: The name of the image style. Return value \Drupal\image\ImageStyleInterface The class instance this method is called on. File core/modules/image/src/ImageStyleInterface.php, line 43 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function setName($name);

ContactFormInterface::getRedirectPath

public ContactFormInterface::getRedirectPath() Returns the path for redirect. Return value string The redirect path. File core/modules/contact/src/ContactFormInterface.php, line 34 Class ContactFormInterface Provides an interface defining a contact form entity. Namespace Drupal\contact Code public function getRedirectPath();

ViewExecutable::setArguments

public ViewExecutable::setArguments(array $args) Sets the arguments for the view. Parameters array $args: The arguments passed to the view. File core/modules/views/src/ViewExecutable.php, line 483 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setArguments(array $args) { // The array keys of the arguments will be incorrect if set by // views_embed_view() or \Drupal\views\ViewExecutable:preview(). $this->args = array_values($args

Memory::$queue

The queue data. Type: array File core/lib/Drupal/Core/Queue/Memory.php, line 20 Class Memory Static queue implementation. Namespace Drupal\Core\Queue Code protected $queue;

EntityInterface::link

public EntityInterface::link($text = NULL, $rel = 'canonical', array $options = []) Deprecated way of generating a link to the entity. See toLink(). Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Retu

PoStreamReader::readItem

public PoStreamReader::readItem() Reads and returns a PoItem (source/translation pair). Return value \Drupal\Component\Gettext\PoItem Wrapper for item data instance. Overrides PoReaderInterface::readItem File core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 180 Class PoStreamReader Implements Gettext PO stream reader. Namespace Drupal\Component\Gettext Code public function readItem() { // Clear out the last item. $this->_last_item = NULL; // Read until finished wit

QueryAggregate::addGroupBy

protected QueryAggregate::addGroupBy() Adds the groupby values to the actual query. Return value \Drupal\Core\Entity\Query\Sql\QueryAggregate Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 102 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected function addGroupBy() { foreach ($this->groupBy as $group_by) { $field = $group_by['field']; $sql_field = $this-&g

FieldDefinitionInterface::getDefaultValue

public FieldDefinitionInterface::getDefaultValue(FieldableEntityInterface $entity) Returns the default value for the field in a newly created entity. This method computes the runtime default value for a field in a given entity. To access the raw properties assigned to the field definition, ::getDefaultValueLiteral() or ::getDefaultValueCallback() should be used instead. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: The entity for which the default value is generated. Return