ViewAjaxResponse

Custom JSON response object for an ajax view response. We use a special response object to be able to fire a proper alter hook. Hierarchy class \Symfony\Component\HttpFoundation\JsonResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Core\Ajax\AjaxResponse implements AttachmentsInterface uses AttachmentsTraitclass \Drupal\views\Ajax\ViewAjaxResponse File core/modules/views/src/Ajax/ViewAjaxResponse.php, line 13 Namespace Drupal\views\Ajax Members Name Modifie

EntityConstraintViolationList::$violationOffsetsByField

Violation offsets grouped by field. Keys are field names, values are arrays of violation offsets. Type: array[]|null File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 40 Class EntityConstraintViolationList Implements an entity constraint violation list. Namespace Drupal\Core\Entity Code protected $violationOffsetsByField;

ModulesListExperimentalConfirmForm::buildMessageList

protected ModulesListExperimentalConfirmForm::buildMessageList() Builds the message list for the confirmation form. Return value \Drupal\Component\Render\MarkupInterface[] Array of markup for the list of messages on the form. Overrides ModulesListConfirmForm::buildMessageList See also \Drupal\system\Form\ModulesListForm::buildModuleList() File core/modules/system/src/Form/ModulesListExperimentalConfirmForm.php, line 27 Class ModulesListExperimentalConfirmForm Builds a confirmation form f

ContentTranslationHandlerInterface::retranslate

public ContentTranslationHandlerInterface::retranslate(EntityInterface $entity, $langcode = NULL) Marks translations as outdated. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity being translated. string $langcode: (optional) The language code of the updated language: all the other translations will be marked as outdated. Defaults to the entity language. File core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 60 Class ContentTranslationHandl

PrivateTempStoreFactory::__construct

PrivateTempStoreFactory::__construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, AccountProxyInterface $current_user, RequestStack $request_stack, $expire = 604800) Constructs a Drupal\user\PrivateTempStoreFactory object. Parameters \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $storage_factory: The key/value store factory. \Drupal\Core\Lock\LockBackendInterface $lock_backend: The lock object used for this data. \Drupal\Core\Session\Ac

WidgetBase::formMultipleElements

protected WidgetBase::formMultipleElements(FieldItemListInterface $items, array &$form, FormStateInterface $form_state) Special handling to create form elements for multiple values. Handles generic features for multiple fields: number of widgets AHAH-'add more' button table display and drag-n-drop value reordering File core/lib/Drupal/Core/Field/WidgetBase.php, line 142 Class WidgetBase Base class for 'Field widget' plugin implementations. Namespace Drupal\Core\Field Code protec

EntityViewBuilder

Base class for entity view builders. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterface Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 20 Namespace Drupal\Core\Entity Members Name Modifiers Type Desc

LocalActionDefault::__construct

public LocalActionDefault::__construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider) Constructs a LocalActionDefault object. Parameters array $configuration: A configuration array containing information about the plugin instance. string $plugin_id: The plugin_id for the plugin instance. mixed $plugin_definition: The plugin implementation definition. \Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider to load routes by

WidgetBase::getFieldSettings

protected WidgetBase::getFieldSettings() Returns the array of field settings. Return value array The array of settings. File core/lib/Drupal/Core/Field/WidgetBase.php, line 515 Class WidgetBase Base class for 'Field widget' plugin implementations. Namespace Drupal\Core\Field Code protected function getFieldSettings() { return $this->fieldDefinition->getSettings(); }

Query::getComments

public &Query::getComments() Returns a reference to the comments array for the query. Because this method returns by reference, alter hooks may edit the comments array directly to make their changes. If just adding comments, however, the use of comment() is preferred. Note that this method must be called by reference as well: $comments =& $query->getComments(); Return value array A reference to the comments array structure. File core/lib/Drupal/Core/Database/Query/Query.php, line 1