EntityDisplayBase::setTargetBundle

public EntityDisplayBase::setTargetBundle($bundle) Sets the bundle to be displayed. Parameters string $bundle: The bundle to be displayed. Return value $this Overrides EntityDisplayInterface::setTargetBundle File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 226 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code public function setTargetBundle($bundle) { $this->set('bundle', $bundle); return $this

KeyValueStoreExpirableInterface::setMultipleWithExpire

public KeyValueStoreExpirableInterface::setMultipleWithExpire(array $data, $expire) Saves an array of values with a time to live. Parameters array $data: An array of data to store. int $expire: The time to live for items, in seconds. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php, line 45 Class KeyValueStoreExpirableInterface Defines the interface for expiring data in a key/value store. Namespace Drupal\Core\KeyValueStore Code public function setMultipleWi

ViewEditForm::submitDisplayUndoDelete

public ViewEditForm::submitDisplayUndoDelete($form, FormStateInterface $form_state) Submit handler to add a restore a removed display to a view. File core/modules/views_ui/src/ViewEditForm.php, line 571 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayUndoDelete($form, FormStateInterface $form_state) { $view = $this->entity; // Create the new display $id = $form_state->get('display_id'); $displays = $v

node_modules_installed

node_modules_installed($modules) Implements hook_modules_installed(). File core/modules/node/node.module, line 1281 The core module that allows content to be submitted to the site. Code function node_modules_installed($modules) { // Check if any of the newly enabled modules require the node_access table to // be rebuilt. if (!node_access_needs_rebuild() && array_intersect($modules, \Drupal::moduleHandler()->getImplementations('node_grants'))) { node_access_needs_rebuild(T

NodeRevisionRevertForm::getCancelUrl

public NodeRevisionRevertForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 79 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code public function getCancelUrl() { return new Url('entity.node.version_history', array('node' => $this->revision-

FormStateValuesTrait::getValue

public &FormStateValuesTrait::getValue($key, $default = NULL) Implements \Drupal\Core\Form\FormStateInterface::getValue() File core/lib/Drupal/Core/Form/FormStateValuesTrait.php, line 24 Class FormStateValuesTrait Provides methods to manage form state values. Namespace Drupal\Core\Form Code public function &getValue($key, $default = NULL) { $exists = NULL; $value = &NestedArray::getValue($this->getValues(), (array) $key, $exists); if (!$exists) { $value = $defa

EntityAccessControlHandler::getCache

protected EntityAccessControlHandler::getCache($cid, $operation, $langcode, AccountInterface $account) Tries to retrieve a previously cached access value from the static cache. Parameters string $cid: Unique string identifier for the entity/operation, for example the entity UUID or a custom string. string $operation: The entity operation. Usually one of 'view', 'update', 'create' or 'delete'. string $langcode: The language code for which to check access. \Drupal\Core\Session\AccountInterface $

FieldItemListInterface::getLangcode

public FieldItemListInterface::getLangcode() Gets the langcode of the field values held in the object. Return value string The langcode. File core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 52 Class FieldItemListInterface Interface for fields, being lists of field items. Namespace Drupal\Core\Field Code public function getLangcode();

EntityViewsData

Provides generic views integration for entities. Hierarchy class \Drupal\views\EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterface uses StringTranslationTrait File core/modules/views/src/EntityViewsData.php, line 21 Namespace Drupal\views Members Name Modifiers Type Description EntityViewsData::$entityManager protected property The entity manager. EntityViewsData::$entityType protected property Entity type for this views data handler insta

CommentStorageInterface::getChildCids

public CommentStorageInterface::getChildCids(array $comments) Gets the comment ids of the passed comment entities' children. Parameters \Drupal\comment\CommentInterface[] $comments: An array of comment entities keyed by their ids. Return value array The entity ids of the passed comment entities' children as an array. File core/modules/comment/src/CommentStorageInterface.php, line 81 Class CommentStorageInterface Defines an interface for comment entity storage classes. Namespace Drupal