AttributeArray::getIterator

public AttributeArray::getIterator() File core/lib/Drupal/Core/Template/AttributeArray.php, line 80 Class AttributeArray A class that defines a type of Attribute that can be added to as an array. Namespace Drupal\Core\Template Code public function getIterator() { return new \ArrayIterator($this->value); }

MenuLinkBase::getMetaData

public MenuLinkBase::getMetaData() Returns any metadata for this link. Return value array The metadata for the menu link. Overrides MenuLinkInterface::getMetaData File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 101 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getMetaData() { return $this->pluginDefinition['metadata'] ? : array(); }

Node::setRevisionUserId

public Node::setRevisionUserId($user_id) Sets the entity revision author by ID. Parameters int $user_id: The user ID of the revision author. Return value $this Overrides RevisionLogInterface::setRevisionUserId File core/modules/node/src/Entity/Node.php, line 345 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setRevisionUserId($user_id) { $this->set('revision_uid', $user_id); return $this; }

QueryAggregateInterface::execute

public QueryAggregateInterface::execute() Executes the aggregate query. $result = $query ->aggregate('nid', 'count') ->condition('status', 1) ->groupby('type') ->executeAggregate(); Will return: $result[0] = array('count_nid' => 3, 'type' => 'page'); $result[1] = array('count_nid' => 1, 'type' => 'poll'); $result[2] = array('count_nid' => 4, 'type' => 'story'); Return value array A list of result row arrays. Each result row contains the aggregate result

LOCALE_TRANSLATION_USE_SOURCE_LOCAL

Translation update mode: Use local files only. When checking for available translation updates, only local files will be used. Any remote translation file will be ignored. Also custom modules and themes which have set a "server pattern" to use a remote translation server will be ignored. File core/modules/locale/locale.module, line 87 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_USE_SOURCE_LOCAL = 'local';

LocalActionDefault::getOptions

public LocalActionDefault::getOptions(RouteMatchInterface $route_match) Returns options for rendering a link for the local action. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value array An associative array of options. Overrides LocalActionInterface::getOptions File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 118 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\M

MenuForm::save

public MenuForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation pe

MenuListBuilder::buildHeader

public MenuListBuilder::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/menu_ui/src/MenuListBuilder.php, line 19 Class MenuListBuilder Defines a class to build a listing of menu entities. Namespace Drupal\menu_ui Code public function buildHeader() { $header['title'] = t('Title'); $header['des

history_node_delete

history_node_delete(EntityInterface $node) Implements hook_ENTITY_TYPE_delete() for node entities. File core/modules/history/history.module, line 153 Records which users have read which content. Code function history_node_delete(EntityInterface $node) { db_delete('history') ->condition('nid', $node->id()) ->execute(); }

LocalAwareRedirectResponseTrait::$requestContext

The request context. Type: \Drupal\Core\Routing\RequestContext File core/lib/Drupal/Core/Routing/LocalAwareRedirectResponseTrait.php, line 17 Class LocalAwareRedirectResponseTrait Provides a trait which ensures that a URL is safe to redirect to. Namespace Drupal\Core\Routing Code protected $requestContext;