AjaxResponseAttachmentsProcessor::$assetResolver

The asset resolver service. Type: \Drupal\Core\Asset\AssetResolverInterface File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 29 Class AjaxResponseAttachmentsProcessor Processes attachments of AJAX responses. Namespace Drupal\Core\Ajax Code protected $assetResolver;

hook_entity_build_defaults_alter

hook_entity_build_defaults_alter(array &$build, \Drupal\Core\Entity\EntityInterface $entity, $view_mode) Alter entity renderable values before cache checking in drupal_render(). The values in the #cache key of the renderable array are used to determine if a cache entry exists for the entity's rendered output. Ideally only values that pertain to caching should be altered in this hook. Parameters array &$build: A renderable array containing the entity's caching and view mode values. \Dru

FieldStorageConfig::setSetting

public FieldStorageConfig::setSetting($setting_name, $value) Sets the value for a field setting by name. Parameters string $setting_name: The name of the setting. mixed $value: The value of the setting. Return value $this Overrides FieldStorageConfigInterface::setSetting File core/modules/field/src/Entity/FieldStorageConfig.php, line 569 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function setSetting($setting_name

ActionListBuilder::buildHeader

public ActionListBuilder::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/action/src/ActionListBuilder.php, line 88 Class ActionListBuilder Defines a class to build a listing of action entities. Namespace Drupal\action Code public function buildHeader() { $header = array( 'type' => t('Ac

ConfigFactoryInterface::rename

public ConfigFactoryInterface::rename($old_name, $new_name) Renames a configuration object using the storage. Parameters string $old_name: The old name of the configuration object. string $new_name: The new name of the configuration object. Return value $this File core/lib/Drupal/Core/Config/ConfigFactoryInterface.php, line 74 Class ConfigFactoryInterface Defines the interface for a configuration object factory. Namespace Drupal\Core\Config Code public function rename($old_name, $new

TermDeleteForm::submitForm

public TermDeleteForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless th

ViewsArgument

Defines a Plugin annotation object for views argument handlers. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBaseclass \Drupal\views\Annotation\ViewsArgument See also \Drupal\views\Plugin\views\argument\ArgumentPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views argument handlers Handler plugins for

quickedit_preprocess_page_title

quickedit_preprocess_page_title(&$variables) Implements hook_preprocess_HOOK() for the page title template. File core/modules/quickedit/quickedit.module, line 119 Provides in-place content editing functionality for fields. Code function quickedit_preprocess_page_title(&$variables) { $variables['title_attributes']['class'][] = 'js-quickedit-page-title'; }

Drupal::entityQuery

public static Drupal::entityQuery($entity_type, $conjunction = 'AND') Returns the entity query object for this entity type. Parameters string $entity_type: The entity type (for example, node) for which the query object should be returned. string $conjunction: (optional) Either 'AND' if all conditions in the query need to apply, or 'OR' if any of them is sufficient. Defaults to 'AND'. Return value \Drupal\Core\Entity\Query\QueryInterface The query object that can query the given entity type. F

ContentEntityBase::isRevisionTranslationAffected

public ContentEntityBase::isRevisionTranslationAffected() Checks whether the current translation is affected by the current revision. Return value bool TRUE if the entity object is affected by the current revision, FALSE otherwise. Overrides ContentEntityInterface::isRevisionTranslationAffected File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 305 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code