Drupal::pathValidator

public static Drupal::pathValidator() Returns the path validator. Return value \Drupal\Core\Path\PathValidatorInterface File core/lib/Drupal.php, line 690 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function pathValidator() { return static::getContainer()->get('path.validator'); }

toolbar_toolbar

toolbar_toolbar() Implements hook_toolbar(). File core/modules/toolbar/toolbar.module, line 137 Administration toolbar for quick access to top level administration items. Code function toolbar_toolbar() { // The 'Home' tab is a simple link, with no corresponding tray. $items['home'] = array( '#type' => 'toolbar_item', 'tab' => array( '#type' => 'link', '#title' => t('Back to site'), '#url' => Url::fromRoute('<front>'), '#attributes' =&g

Link::setUrl

public Link::setUrl(Url $url) Sets the URL of this link. Parameters Url $url: The URL object to set Return value $this File core/lib/Drupal/Core/Link.php, line 130 Class Link Defines an object that holds information about a link. Namespace Drupal\Core Code public function setUrl(Url $url) { $this->url = $url; return $this; }

comment_entity_extra_field_info

comment_entity_extra_field_info() Implements hook_entity_extra_field_info(). File core/modules/comment/comment.module, line 100 Enables users to comment on published content. Code function comment_entity_extra_field_info() { $return = array(); foreach (CommentType::loadMultiple() as $comment_type) { $return['comment'][$comment_type->id()] = array( 'form' => array( 'author' => array( 'label' => t('Author'), 'description' => t('Author tex

LocaleTranslation::destruct

public LocaleTranslation::destruct() Performs destruct operations. Overrides DestructableInterface::destruct File core/modules/locale/src/LocaleTranslation.php, line 146 Class LocaleTranslation String translator using the locale module. Namespace Drupal\locale Code public function destruct() { foreach ($this->translations as $context) { foreach ($context as $lookup) { if ($lookup instanceof DestructableInterface) { $lookup->destruct(); } } } }

EntityForm::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityForm.php, line 42 Class EntityForm Base class for entity forms. Namespace Drupal\Core\Entity Code protected $entityManager;

template_preprocess_forum_icon

template_preprocess_forum_icon(&$variables) Prepares variables for forum icon templates. Default template: forum-icon.html.twig. Parameters array $variables: An array containing the following elements: new_posts: Indicates whether or not the topic contains new posts. num_posts: The total number of posts in all topics. comment_mode: An integer indicating whether comments are open, closed, or hidden. sticky: Indicates whether the topic is sticky. first_new: Indicates whether this is the

YamlDirectoryDiscovery::$idKey

The key contained in the discovered data that identifies it. Type: string File core/lib/Drupal/Component/Discovery/YamlDirectoryDiscovery.php, line 42 Class YamlDirectoryDiscovery Discovers multiple YAML files in a set of directories. Namespace Drupal\Component\Discovery Code protected $idKey;

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

ConfigSubscriber::getSubscribedEvents

static ConfigSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eve