book_node_builder

book_node_builder($entity_type, NodeInterface $entity, &$form, FormStateInterface $form_state) Entity form builder to add the book information to the node. @todo: Remove this in favor of an entity field. File core/modules/book/book.module, line 171 Allows users to create and organize related content in an outline. Code function book_node_builder($entity_type, NodeInterface $entity, &$form, FormStateInterface $form_state) { $entity->book = $form_state->getValue('book'); // A

locale_translate_file_create

locale_translate_file_create($filepath) Creates a file object and populates the timestamp property. Parameters string $filepath: The filepath of a file to import. Return value object An object representing the file. File core/modules/locale/locale.bulk.inc, line 426 Mass import-export and batch import functionality for Gettext .po files. Code function locale_translate_file_create($filepath) { $file = new stdClass(); $file->filename = drupal_basename($filepath); $file->uri = $fil

AccessDeniedSubscriber::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 31 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Code protected $account;

FormStateDecoratorBase::getValue

public &FormStateDecoratorBase::getValue($key, $default = NULL) Returns the submitted form value for a specific key. Parameters string|array $key: Values are stored as a multi-dimensional associative array. If $key is a string, it will return $values[$key]. If $key is an array, each element of the array will be used as a nested key. If $key = array('foo', 'bar') it will return $values['foo']['bar']. mixed $default: (optional) The default value if the specified key does not exist. Return va

CacheTagsChecksumInterface::reset

public CacheTagsChecksumInterface::reset() Reset statically cached tags. This is only used by tests. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 56 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function reset();

comment_token_info

comment_token_info() Implements hook_token_info(). File core/modules/comment/comment.tokens.inc, line 17 Builds placeholder replacement tokens for comment-related data. Code function comment_token_info() { $type = array( 'name' => t('Comments'), 'description' => t('Tokens for comments posted on the site.'), 'needs-data' => 'comment', ); $tokens = []; // Provide a integration for each entity type except comment. foreach (\Drupal::entityTypeManager()->getDefin

Upsert

SQLite implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\sqlite\Upsert File core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\sqlite Members Name Modifiers Type Description InsertTrait::$defaultFields protected property An

EntityBundleListenerInterface::onBundleDelete

public EntityBundleListenerInterface::onBundleDelete($bundle, $entity_type_id) Reacts to a bundle being deleted. This method runs before fields are deleted. Parameters string $bundle: The name of the bundle being deleted. string $entity_type_id: The entity type to which the bundle is bound; e.g. 'node' or 'user'. File core/lib/Drupal/Core/Entity/EntityBundleListenerInterface.php, line 32 Class EntityBundleListenerInterface An interface for reacting to entity bundle creation and deletion.

AccessManagerInterface::checkNamedRoute

public AccessManagerInterface::checkNamedRoute($route_name, array $parameters = array(), AccountInterface $account = NULL, $return_as_object = FALSE) Checks a named route with parameters against applicable access check services. Determines whether the route is accessible or not. Parameters string $route_name: The route to check access to. array $parameters: Optional array of values to substitute into the route path pattern. \Drupal\Core\Session\AccountInterface $account: (optional) Run access

Editor::$supported_element_types

A list of element types this text editor supports. Type: string[] File core/modules/editor/src/Annotation/Editor.php, line 97 Class Editor Defines an Editor annotation object. Namespace Drupal\editor\Annotation Code public $supported_element_types;