Block::getWeight

public Block::getWeight() Returns the weight of this block (used for sorting). Return value int The block weight. Overrides BlockInterface::getWeight File core/modules/block/src/Entity/Block.php, line 185 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code public function getWeight() { return $this->weight; }

MenuTreeStorage::moveChildren

protected MenuTreeStorage::moveChildren($fields, $original) Re-parents a link's children when the link itself is moved. Parameters array $fields: The changed menu link. array $original: The original menu link. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 512 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function moveChildren($fields, $original) { $query = $this->connection->update($this->table, $

ContextualLinks

Provides a contextual_links element. Plugin annotation @RenderElement("contextual_links") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\contextual\Element\ContextualLinks File core/modules/contextual/src/Element/ContextualLinks.php, lin

PoDatabaseReader

Gettext PO reader working with the locale module database. Hierarchy class \Drupal\locale\PoDatabaseReader implements PoReaderInterface File core/modules/locale/src/PoDatabaseReader.php, line 12 Namespace Drupal\locale Members Name Modifiers Type Description PoDatabaseReader::$langcode private property Language code of the language being read from the database. PoDatabaseReader::$options private property An associative array indicating which type of strings shoul

PoDatabaseWriter::setLangcode

public PoDatabaseWriter::setLangcode($langcode) Set language code. Parameters string $langcode: Language code string. Overrides PoMetadataInterface::setLangcode File core/modules/locale/src/PoDatabaseWriter.php, line 75 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function setLangcode($langcode) { $this->langcode = $langcode; }

EditorAccessControlHandler::checkAccess

protected EditorAccessControlHandler::checkAccess(EntityInterface $editor, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for

UserDataInterface

Defines the user data service interface. Hierarchy interface \Drupal\user\UserDataInterface File core/modules/user/src/UserDataInterface.php, line 8 Namespace Drupal\user Members Name Modifiers Type Description UserDataInterface::delete public function Deletes data stored for a user account. UserDataInterface::get public function Returns data stored for a user account. UserDataInterface::set public function Stores data for a user account.

FormState::addCleanValueKey

public FormState::addCleanValueKey($cleanValueKey) Adds a key to the array of form values that will be cleaned. Parameters string $key: The form value key to be cleaned. Return value $this Overrides FormStateInterface::addCleanValueKey File core/lib/Drupal/Core/Form/FormState.php, line 1187 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function addCleanValueKey($cleanValueKey) { $keys = $this->getCleanValueKeys(); $this-&g

ExceptionLoggingSubscriber::getSubscribedEvents

public static ExceptionLoggingSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $prior

ContextualLinkDefault::getRouteName

public ContextualLinkDefault::getRouteName() Returns the route name of the contextual link. Return value string The name of the route this contextual link links to. Overrides ContextualLinkInterface::getRouteName File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 24 Class ContextualLinkDefault Provides a common base implementation of a contextual link. Namespace Drupal\Core\Menu Code public function getRouteName() { return $this->pluginDefinition['route_name']; }