hook_tokens_alter

hook_tokens_alter(array &$replacements, array $context, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) Alter replacement values for placeholder tokens. Parameters $replacements: An associative array of replacements returned by hook_tokens(). $context: The context in which hook_tokens() was called. An associative array with the following keys, which have the same meaning as the corresponding parameters of hook_tokens(): 'type' 'tokens' 'data' 'options' \Drupal\Core\Render\Bu

SelectInterface::havingCondition

public SelectInterface::havingCondition($field, $value = NULL, $operator = NULL) Helper function to build most common HAVING conditional clauses. This method can take a variable number of parameters. If called with two parameters, they are taken as $field and $value with $operator having a value of IN if $value is an array and = otherwise. Parameters $field: The name of the field to check. If you would like to add a more complex condition involving operators or functions, use having(). $value:

InstallStorage::delete

public InstallStorage::delete($name) Overrides Drupal\Core\Config\FileStorage::delete(). Throws \Drupal\Core\Config\StorageException Overrides FileStorage::delete File core/lib/Drupal/Core/Config/InstallStorage.php, line 112 Class InstallStorage Storage used by the Drupal installer. Namespace Drupal\Core\Config Code public function delete($name) { throw new StorageException('Delete operation is not allowed.'); }

ContactForm::getRedirectPath

public ContactForm::getRedirectPath() Returns the path for redirect. Return value string The redirect path. Overrides ContactFormInterface::getRedirectPath File core/modules/contact/src/Entity/ContactForm.php, line 132 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function getRedirectPath() { return $this->redirect; }

EntityFieldManager::$keyValueFactory

The key-value factory. Type: \Drupal\Core\KeyValueStore\KeyValueFactoryInterface File core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 96 Class EntityFieldManager Manages the discovery of entity fields. Namespace Drupal\Core\Entity Code protected $keyValueFactory;

EntityViewBuilder::view

public EntityViewBuilder::view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) Builds the render array for the provided entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to render. string $view_mode: (optional) The view mode that should be used to render the entity. string $langcode: (optional) For which language the entity should be rendered, defaults to the current content language. Return value array A render array for the entity. Throws \InvalidAr

CronAccessCheck

Access check for cron routes. Hierarchy class \Drupal\system\Access\CronAccessCheck implements AccessInterface File core/modules/system/src/Access/CronAccessCheck.php, line 11 Namespace Drupal\system\Access Members Name Modifiers Type Description CronAccessCheck::access public function Checks access.

BlockBase::blockForm

public BlockBase::blockForm($form, FormStateInterface $form_state) Returns the configuration form elements specific to this block plugin. Blocks that need to add form elements to the normal block configuration form should implement this method. Parameters array $form: The form definition array for the block configuration form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array $form The renderable form array representing the entire configuratio

EntityType::$bundle_of

The name of the entity type for which bundles are provided. Type: string|null File core/lib/Drupal/Core/Entity/EntityType.php, line 133 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $bundle_of = NULL;

locale_translation_batch_fetch_build

locale_translation_batch_fetch_build($projects = array(), $langcodes = array(), $options = array()) Builds a batch to download and import project translations. Parameters array $projects: Array of project names for which to check the state of translation files. Defaults to all translatable projects. array $langcodes: Array of language codes. Defaults to all translatable languages. array $options: Array of import options. See locale_translate_batch_import_files(). Return value array Batch defi