hook_themes_installed

hook_themes_installed($theme_list) Respond to themes being installed. Parameters array $theme_list: Array containing the names of the themes being installed. See also \Drupal\Core\Extension\ThemeHandler::install() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/lib/Drupal/Core/Render/theme.api.php, line 728 Hooks and documentation related to the theme and render system. Code function hook_themes_installed($theme_list) { foreach ($theme_list as $th

ViewsArgumentDefault::$short_title

(optional) The short title used in the views UI. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/modules/views/src/Annotation/ViewsArgumentDefault.php, line 39 Class ViewsArgumentDefault Defines a Plugin annotation object for views argument default plugins. Namespace Drupal\views\Annotation Code public $short_title = '';

FinalMissingContentSubscriber::onMissingContent

public FinalMissingContentSubscriber::onMissingContent(MissingContentEvent $event) Handles the missing content event. Parameters \Drupal\Core\Config\Importer\MissingContentEvent $event: The missing content event. File core/lib/Drupal/Core/Config/Importer/FinalMissingContentSubscriber.php, line 24 Class FinalMissingContentSubscriber Final event subscriber to the missing content event. Namespace Drupal\Core\Config\Importer Code public function onMissingContent(MissingContentEvent $event

MenuLinkDefaultForm::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 50 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $moduleHandler;

EntityTypeInterface::ID_MAX_LENGTH

The maximum length of ID, in characters. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 20 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code const ID_MAX_LENGTH = 32;

AuthenticationManager::appliesToRoutedRequest

public AuthenticationManager::appliesToRoutedRequest(Request $request, $authenticated) Checks whether the authentication method is allowed on a given route. While authentication itself is run before routing, this method is called after routing, hence RouteMatch is available and can be used to inspect route options. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. bool $authenticated: Whether or not the request is authenticated. Return value bool TRUE if an authentic

Item::getDescription

public Item::getDescription() Returns the body of the feed item. Return value string The body of the feed item. Overrides ItemInterface::getDescription File core/modules/aggregator/src/Entity/Item.php, line 174 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getDescription() { return $this->get('description')->value; }

EntityForm::getEntity

public EntityForm::getEntity() Gets the form entity. The form entity which has been used for populating form element defaults. Return value \Drupal\Core\Entity\EntityInterface The current form entity. Overrides EntityFormInterface::getEntity File core/lib/Drupal/Core/Entity/EntityForm.php, line 336 Class EntityForm Base class for entity forms. Namespace Drupal\Core\Entity Code public function getEntity() { return $this->entity; }

AnnotationInterface::getId

public AnnotationInterface::getId() Gets the unique ID for this annotated class. Return value string File core/lib/Drupal/Component/Annotation/AnnotationInterface.php, line 34 Class AnnotationInterface Defines a common interface for classed annotations. Namespace Drupal\Component\Annotation Code public function getId();

views_element_validate_tags

views_element_validate_tags($element, FormStateInterface $form_state) Validation callback for query tags. File core/modules/views/views.module, line 798 Primarily Drupal hooks and global API functions to manipulate views. Code function views_element_validate_tags($element, FormStateInterface $form_state) { $values = array_map('trim', explode(',', $element['#value'])); foreach ($values as $value) { if (preg_match("/[^a-z_]/", $value)) { $form_state->setError($element, t('The q