Theme

Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Hierarchy class \Drupal\Core\Updater\Updaterclass \Drupal\Core\Updater\Theme implements UpdaterInterface File core/lib/Drupal/Core/Updater/Theme.php, line 11 Namespace Drupal\Core\Updater Members Name Modifiers Type Description Theme::canUpdate public static function Determines whether this class can update the specified project. Theme::canUpdateDirectory stati

InsertTrait::values

public InsertTrait::values(array $values) Adds another set of values to the query to be inserted. If $values is a numeric-keyed array, it will be assumed to be in the same order as the original fields() call. If it is associative, it may be in any order as long as the keys of the array match the names of the fields. Parameters array $values: An array of values to add to the query. Return value $this The called object. File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 101 Class

RoleListBuilder::buildRow

public RoleListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides DraggableListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/user/src/RoleListBuilder.php, line 34 Class RoleListBuilder Defines a class to build a listing of user

RoleInterface::getWeight

public RoleInterface::getWeight() Returns the weight. Return value int The weight of this role. File core/modules/user/src/RoleInterface.php, line 88 Class RoleInterface Provides an interface defining a user role entity. Namespace Drupal\user Code public function getWeight();

hook_entity_insert

hook_entity_insert(Drupal\Core\Entity\EntityInterface $entity) Respond to creation of a new entity. This hook runs once the entity has been stored. Note that hook implementations may not alter the stored entity data. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity object. See also hook_ENTITY_TYPE_insert() Related topics Entity CRUD, editing, and view hooks Hooks used in various entity operations. Hooks Define functions that alter the behavior of Drupal core. File core/li

EntityDisplayFormBase::getTableHeader

abstract protected EntityDisplayFormBase::getTableHeader() Returns an array containing the table headers. Return value array The table header. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 894 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code abstract protected function getTableHeader();

INSTALL_TASK_RUN_IF_REACHED

Run the task on each installation request that reaches it. This is primarily used by the Drupal installer for bootstrap-related tasks. File core/includes/install.core.inc, line 53 API functions for installing Drupal. Code const INSTALL_TASK_RUN_IF_REACHED = 2;

ConfigurableLanguageInterface::setName

public ConfigurableLanguageInterface::setName($name) Sets the name of the language. Parameters string $name: The human-readable English name of the language. Return value $this File core/modules/language/src/ConfigurableLanguageInterface.php, line 21 Class ConfigurableLanguageInterface Provides an interface defining a language entity. Namespace Drupal\language Code public function setName($name);

Token::scan

public Token::scan($text) Builds a list of all token-like patterns that appear in the text. Parameters string $text: The text to be scanned for possible tokens. Return value array An associative array of discovered tokens, grouped by type. File core/lib/Drupal/Core/Utility/Token.php, line 236 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code public function scan($text) { // Matches tokens with the following pattern: [$type:$name] // $type

MatcherDumper::getRoutes

public MatcherDumper::getRoutes() Gets the routes to match. Return value \Symfony\Component\Routing\RouteCollection A RouteCollection instance representing all routes currently in the dumper. Overrides MatcherDumperInterface::getRoutes File core/lib/Drupal/Core/Routing/MatcherDumper.php, line 166 Class MatcherDumper Dumps Route information to a database table. Namespace Drupal\Core\Routing Code public function getRoutes() { return $this->routes; }