VocabularyInterface::getDescription

public VocabularyInterface::getDescription() Returns the vocabulary description. Return value string The vocabulary description. File core/modules/taxonomy/src/VocabularyInterface.php, line 55 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code public function getDescription();

LocaleTranslationCacheTag

A subscriber invalidating cache tags when translating a string. Hierarchy class \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag implements EventSubscriberInterface File core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 12 Namespace Drupal\locale\EventSubscriber Members Name Modifiers Type Description LocaleTranslationCacheTag::$cacheTagsInvalidator protected property The cache tags invalidator. LocaleTranslationCacheTag::getSubscribed

Unicode::substr

public static Unicode::substr($text, $start, $length = NULL) Cuts off a piece of a string based on character indices and counts. Follows the same behavior as PHP's own substr() function. Note that for cutting off a string at a known character/substring location, the usage of PHP's normal strpos/substr is safe and much faster. Parameters string $text: The input string. int $start: The position at which to start reading. int $length: The number of characters to read. Return value string The sho

template_preprocess_username

template_preprocess_username(&$variables) Prepares variables for username templates. Default template: username.html.twig. Modules that make any changes to variables like 'name' or 'extra' must ensure that the final string is safe. Parameters array $variables: An associative array containing: account: The user account (\Drupal\Core\Session\AccountInterface). File core/modules/user/user.module, line 458 Enables the user registration and login system. Code function template_preprocess_u

UserCacheContextBase

Base class for user-based cache contexts. Subclasses need to implement either \Drupal\Core\Cache\Context\CacheContextInterface or \Drupal\Core\Cache\Context\CalculatedCacheContextInterface. Hierarchy class \Drupal\Core\Cache\Context\UserCacheContextBase File core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php, line 14 Namespace Drupal\Core\Cache\Context Members Name Modifiers Type Description UserCacheContextBase::$user protected property The account object. Us

config_help

config_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/config/config.module, line 13 Allows site administrators to modify configuration. Code function config_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.config': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Configuration Manager module provides a user interface for importin

FieldStorageAddForm

Provides a form for the "field storage" add page. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\field_ui\Form\FieldStorageAddForm File core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 19 Namespace Drupal\field_ui\Form Members Name Modifiers Type Description Dep

Url::fromUri

public static Url::fromUri($uri, $options = []) Creates a new Url object from a URI. This method is for generating URLs for URIs that: do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of

FieldConfigEditForm::actions

protected FieldConfigEditForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 115 Class FieldConfigEditForm Provides a form for the field settings form. Namespace Drupal\field_ui\Form Code protected function actions(array $form, F

MenuActiveTrail

Provides the default implementation of the active menu trail service. It uses the current route name and route parameters to compare with the ones of the menu links. Hierarchy class \Drupal\Core\Cache\CacheCollector implements CacheCollectorInterface, DestructableInterfaceclass \Drupal\Core\Menu\MenuActiveTrail implements MenuActiveTrailInterface File core/lib/Drupal/Core/Menu/MenuActiveTrail.php, line 16 Namespace Drupal\Core\Menu Members Name Modifiers Type Description Cach