EntityViewBuilder::viewField

public EntityViewBuilder::viewField(FieldItemListInterface $items, $display_options = array()) Builds a renderable array for the value of a single field in an entity. The resulting output is a fully themed field with label and multiple values. This function can be used by third-party modules that need to output an isolated field. Do not use inside node (or any other entity) templates; use render($content[FIELD_NAME]) instead. The FieldItemInterface::view() method can be used to output a single

DatabaseQueue::numberOfItems

public DatabaseQueue::numberOfItems() Retrieves the number of items in the queue. This is intended to provide a "best guess" count of the number of items in the queue. Depending on the implementation and the setup, the accuracy of the results of this function may vary. e.g. On a busy system with a large number of consumers and items, the result might only be valid for a fraction of a second and not provide an accurate representation. Return value An integer estimate of the number of items in t

SqlContentEntityStorageSchema::updateDedicatedTableSchema

protected SqlContentEntityStorageSchema::updateDedicatedTableSchema(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Updates the schema for a field stored in a shared table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field being updated. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original storage definition; i.e., the definition before the update. Throws

ProfileForm::actions

protected ProfileForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/user/src/ProfileForm.php, line 25 Class ProfileForm Form handler for the profile forms. Namespace Drupal\user Code protected function actions(array $form, FormStateInterface $form_state) { $element = parent

ThemeHandler::rebuildThemeData

public ThemeHandler::rebuildThemeData() Scans and collects theme extension data and their engines. Return value \Drupal\Core\Extension\Extension[] An associative array of theme extensions. Overrides ThemeHandlerInterface::rebuildThemeData File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 245 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function rebuildThemeData() { $listing = $th

FieldStorageConfigListBuilder::buildHeader

public FieldStorageConfigListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/FieldStorageConfigListBuilder.php, line 83 Class FieldStorageConfigListBuilder Defines a class to build a listing of fields. Namespace Drupal\field_ui Code public function buildHeader() { $header[

DefaultTableMapping::getColumnNames

public DefaultTableMapping::getColumnNames($field_name) Gets a mapping of field columns to database columns for a given field. Parameters string $field_name: The name of the entity field to return the column mapping for. Return value string[] The keys of this array are the keys of the array returned by FieldStorageDefinitionInterface::getColumns() while the respective values are the names of the database columns for this table mapping. Overrides TableMappingInterface::getColumnNames File core

Token::generate

public Token::generate($type, array $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) Generates replacement values for a list of tokens. Parameters string $type: The type of token being replaced. 'node', 'user', and 'date' are common. array $tokens: An array of tokens to be replaced, keyed by the literal text of the token as it appeared in the source text. array $data: An array of keyed objects. For simple replacement scenarios: 'node', 'user', and others are commo

ThemeHandlerInterface::reset

public ThemeHandlerInterface::reset() Resets the internal state of the theme handler. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 115 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function reset();

FeedInterface::setLastModified

public FeedInterface::setLastModified($modified) Sets the last modification of the feed. Parameters int $modified: The timestamp when the feed was modified. Return value \Drupal\aggregator\FeedInterface The class instance that this method is called on. File core/modules/aggregator/src/FeedInterface.php, line 212 Class FeedInterface Provides an interface defining an aggregator feed entity. Namespace Drupal\aggregator Code public function setLastModified($modified);