FieldStorageAddForm::validateForm

public FieldStorageAddForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 231 Class FieldStorageAddForm Provides a form for the "field storage" add page. Namespace Drupal\field_ui\Form

ArgumentsResolver::getArgument

protected ArgumentsResolver::getArgument(\ReflectionParameter $parameter) Gets the argument value for a parameter. Parameters \ReflectionParameter $parameter: The parameter of a callable to get the value for. Return value mixed The value of the requested parameter value. Throws \RuntimeException Thrown when there is a missing parameter. File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 71 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace

user_toolbar

user_toolbar() Implements hook_toolbar(). File core/modules/user/user.module, line 1307 Enables the user registration and login system. Code function user_toolbar() { $user = \Drupal::currentUser(); // Add logout & user account links or login link. $links_cache_contexts = []; if ($user->isAuthenticated()) { $links = array( 'account' => array( 'title' => t('View profile'), 'url' => Url::fromRoute('user.page'), 'attributes' => array(

locale_system_remove

locale_system_remove($components) Delete translation history of modules and themes. Only the translation history is removed, not the source strings or translations. This is not possible because strings are shared between modules and we have no record of which string is used by which module. Parameters array $components: An array of arrays of component (theme and/or module) names to import translations for, indexed by type. File core/modules/locale/locale.module, line 448 Enables the translatio

StringLoader

Loads string templates, also known as inline templates. This loader is intended to be used in a Twig loader chain and whitelists string templates that begin with the following comment: {# inline_template_start #} This class override ensures that the string loader behaves as expected in the loader chain. If Twig's string loader is used as is, any string (even a reference to a file-based Twig template) is treated as a valid template and is rendered instead of a \Twig_Error_Loader exception bein

ViewExecutable::$exposed_raw_input

Exposed widget input directly from the $form_state->getValues(). Type: array File core/modules/views/src/ViewExecutable.php, line 152 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $exposed_raw_input = array();

locale_system_set_config_langcodes

locale_system_set_config_langcodes() Updates default configuration when new modules or themes are installed. File core/modules/locale/locale.module, line 366 Enables the translation of the user interface to languages other than English. Code function locale_system_set_config_langcodes() { // Need to rewrite some default configuration language codes if the default // site language is not English. $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId(); if ($

BaseFieldDefinition::getProvider

public BaseFieldDefinition::getProvider() Returns the name of the provider of this field. Return value string The provider name; e.g., the module name. Overrides FieldStorageDefinitionInterface::getProvider File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 195 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function getProvider() { return isset($this->definition['provider']) ? $this->definition['provider'] : NUL

quickedit_help

quickedit_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/quickedit/quickedit.module, line 21 Provides in-place content editing functionality for fields. Code function quickedit_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.quickedit': $output = '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Quick Edit module allows users with the <a href=":quickedit_pe

Comment::isPublished

public Comment::isPublished() Checks if the comment is published. Return value bool TRUE if the comment is published. Overrides CommentInterface::isPublished File core/modules/comment/src/Entity/Comment.php, line 473 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function isPublished() { return $this->get('status')->value == CommentInterface::PUBLISHED; }