hook_link_alter

hook_link_alter(&$variables) Alter the parameters for links. Parameters array $variables: An associative array of variables defining a link. The link may be either a "route link" using \Drupal\Core\Utility\LinkGenerator::link(), which is exposed as the 'link_generator' service or a link generated by \Drupal\Core\Utility\LinkGeneratorInterface::generate(). If the link is a "route link", 'route_name' will be set; otherwise, 'path' will be set. The following keys can be altered: text: The li

BookOutlineStorageInterface::loadBookChildren

public BookOutlineStorageInterface::loadBookChildren($pid) Loads book's children using it's parent ID. Parameters int $pid: The book's parent ID. Return value array Array of loaded book items. File core/modules/book/src/BookOutlineStorageInterface.php, line 80 Class BookOutlineStorageInterface Defines a common interface for book outline storage classes. Namespace Drupal\book Code public function loadBookChildren($pid);

EntityConstraintViolationListInterface

Interface for the result of entity validation. The Symfony violation list is extended with methods that allow filtering violations by fields and field access. Forms leverage that to skip possibly pre-existing violations that cannot be caused or fixed by the form. Hierarchy interface \Symfony\Component\Validator\ConstraintViolationListInterface extends \Traversableinterface \Drupal\Core\Entity\EntityConstraintViolationListInterface File core/lib/Drupal/Core/Entity/EntityConstraintViolationLi

ConfigEntityType::$mergedConfigExport

The result of merging config_export annotation with the defaults. This is stored on the class so that it does not have to be recalculated. Type: array File core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php, line 47 Class ConfigEntityType Provides an implementation of a configuration entity type and its metadata. Namespace Drupal\Core\Config\Entity Code protected $mergedConfigExport = [];

ViewExecutable::mergeDefaults

public ViewExecutable::mergeDefaults() Merges all plugin default values for each display. File core/modules/views/src/ViewExecutable.php, line 2391 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function mergeDefaults() { $this->initDisplay(); // Initialize displays and merge all plugin defaults. foreach ($this->displayHandlers as $display) { $display->mergeDefaults(); } }

BookOutlineStorageInterface::update

public BookOutlineStorageInterface::update($nid, $fields) Updates book reference for links that were moved between books. Parameters int $nid: The nid of the book entry to be updated. array $fields: The array of fields to be updated. Return value mixed The number of rows matched by the update query. File core/modules/book/src/BookOutlineStorageInterface.php, line 125 Class BookOutlineStorageInterface Defines a common interface for book outline storage classes. Namespace Drupal\book C

FeedItemsDeleteForm::getConfirmText

public FeedItemsDeleteForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ContentEntityConfirmFormBase::getConfirmText File core/modules/aggregator/src/Form/FeedItemsDeleteForm.php, line 31 Class FeedItemsDeleteForm Provides a deletion confirmation form for items that belong to a feed. Namespace Drupal\aggregator\Form Code public function getConfirmText() { return $this->t('Delete items'); }

EntityManager::getHandler

public EntityManager::getHandler($entity_type, $handler_type) Overrides EntityTypeManagerInterface::getHandler Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 117 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getHandler($entity_type, $handler_type) { return $this->container->get('entity_type.manager')->getHan

BookOutlineStorageInterface::updateMovedChildren

public BookOutlineStorageInterface::updateMovedChildren($bid, $original, $expressions, $shift) Update the book ID of the book link that it's being moved. Parameters int $bid: The ID of the book whose children we move. array $original: The original parent of the book link. array $expressions: Array of expressions to be added to the query. int $shift: The difference in depth between the old and the new position of the element being moved. Return value mixed The number of rows matched by the upd

StateTransitionValidation::getValidTransitions

public StateTransitionValidation::getValidTransitions(ContentEntityInterface $entity, AccountInterface $user) Gets a list of transitions that are legal for this user on this entity. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity to be transitioned. \Drupal\Core\Session\AccountInterface $user: The account that wants to perform a transition. Return value \Drupal\content_moderation\Entity\ModerationStateTransition[] The list of transitions that are legal for this user