Token::findWithPrefix

public Token::findWithPrefix(array $tokens, $prefix, $delimiter = ':') Returns a list of tokens that begin with a specific prefix. Used to extract a group of 'chained' tokens (such as [node:author:name]) from the full list of tokens found in text. For example: $data = array( 'author:name' => '[node:author:name]', 'title' => '[node:title]', 'created' => '[node:created]', ); $results = Token::findWithPrefix($data, 'author'); $results == array('name' => '[

FieldConfigBase::createFromDataType

public static FieldConfigBase::createFromDataType($type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data type, for w

MaintenanceModeInterface

Defines the interface for the maintenance mode service. Hierarchy interface \Drupal\Core\Site\MaintenanceModeInterface File core/lib/Drupal/Core/Site/MaintenanceModeInterface.php, line 11 Namespace Drupal\Core\Site Members Name Modifiers Type Description MaintenanceModeInterface::applies public function Returns whether the site is in maintenance mode. MaintenanceModeInterface::exempt public function Determines whether a user has access to the site in maintenance

FileCache

Allows to cache data based on file modification dates. Hierarchy class \Drupal\Component\FileCache\FileCache implements FileCacheInterface File core/lib/Drupal/Component/FileCache/FileCache.php, line 8 Namespace Drupal\Component\FileCache Members Name Modifiers Type Description FileCache::$cache protected property The cache backend backing this FileCache object. FileCache::$cached protected static property Static cache that contains already loaded cache entries.

AccountInterface::id

public AccountInterface::id() Returns the user ID or 0 for anonymous. Return value int The user ID. File core/lib/Drupal/Core/Session/AccountInterface.php, line 31 Class AccountInterface Defines an account interface which represents the current user. Namespace Drupal\Core\Session Code public function id();

update_authorize_install_batch_finished

update_authorize_install_batch_finished($success, $results) Implements callback_batch_finished(). Performs actions when the authorized install batch is done. This processes the results and stashes them into SESSION such that authorize.php will render a report. Also responsible for putting the site back online after a successful install if necessary. Parameters $success: TRUE if the batch operation was a success; FALSE if there were errors. $results: An associative array of results from the bat

ContextualLinkInterface::getGroup

public ContextualLinkInterface::getGroup() Returns the group this contextual link should be rendered in. A contextual link group is a set of contextual links that are displayed together on a certain page. For example, the 'block' group displays all links related to the block, such as the block instance edit link as well as the views edit link, if it is a view block. Return value string The contextual links group name. File core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 50 Class

AdminDemoNegotiator::applies

public AdminDemoNegotiator::applies(RouteMatchInterface $route_match) Whether this theme negotiator should be used to set the theme. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value bool TRUE if this negotiator should be used or FALSE to let other negotiators decide. Overrides ThemeNegotiatorInterface::applies File core/modules/block/src/Theme/AdminDemoNegotiator.php, line 16 Class AdminDemoNegotiator Negotiates the theme for

EntityViewController::buildTitle

public EntityViewController::buildTitle(array $page) Pre-render callback to build the page title. Parameters array $page: A page render array. Return value array The changed page render array. File core/lib/Drupal/Core/Entity/Controller/EntityViewController.php, line 63 Class EntityViewController Defines a generic controller to render a single entity. Namespace Drupal\Core\Entity\Controller Code public function buildTitle(array $page) { $entity_type = $page['#entity_type']; $enti

EntityTypeInterface::getRevisionDataTable

public EntityTypeInterface::getRevisionDataTable() Gets the name of the entity's revision data table. @todo Used by SqlContentEntityStorage only. Return value string|null The name of the entity type's revision data table, or NULL if none exists. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 592 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getRevisionDataTable();