AccountSettingsForm::getFormId

public AccountSettingsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/user/src/AccountSettingsForm.php, line 61 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user Code public function getFormId() { return 'user_admin_settings'; }

PoItem::setPlural

PoItem::setPlural($plural) Set if the translation has plural values. Parameters bool $plural: File core/lib/Drupal/Component/Gettext/PoItem.php, line 138 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setPlural($plural) { $this->_plural = $plural; }

RevisionableContentEntityBase::baseFieldDefinitions

public static RevisionableContentEntityBase::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide defini

DraggableListBuilder::submitForm

public DraggableListBuilder::submitForm(array &$form, FormStateInterface $form_state) Form submission 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 FormInterface::submitForm File core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 155 Class DraggableListBuilder Defines a class to build a draggable listing of configuration entities. Na

taxonomy_theme_suggestions_taxonomy_term

taxonomy_theme_suggestions_taxonomy_term(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/taxonomy/taxonomy.module, line 225 Enables the organization of content into categories. Code function taxonomy_theme_suggestions_taxonomy_term(array $variables) { $suggestions = array(); /** @var \Drupal\taxonomy\TermInterface $term */ $term = $variables['elements']['#taxonomy_term']; $suggestions[] = 'taxonomy_term__' . $term->bundle(); $suggestions[] = 'taxon

contextual_page_attachments

contextual_page_attachments(array &$page) Implements hook_page_attachments(). Adds the drupal.contextual-links library to the page for any user who has the 'access contextual links' permission. See also contextual_preprocess() File core/modules/contextual/contextual.module, line 62 Adds contextual links to perform actions related to elements on a page. Code function contextual_page_attachments(array &$page) { if (!\Drupal::currentUser()->hasPermission('access contextual links'))

TwigExtension::renderVar

public TwigExtension::renderVar($arg) Wrapper around render() for twig printed output. If an object is passed which does not implement __toString(), RenderableInterface or toString() then an exception is thrown; Other objects are casted to string. However in the case that the object is an instance of a Twig_Markup object it is returned directly to support auto escaping. If an array is passed it is rendered via render() and scalar values are returned directly. Parameters mixed $arg: String, Obj

FormStateDecoratorBase::getValues

public &FormStateDecoratorBase::getValues() Returns the submitted and sanitized form values. Return value array An associative array of values submitted to the form. Overrides FormStateInterface::getValues File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 512 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function &getValues() { return $this->decoratedFormState->getValues(); }

ExtensionDiscovery::getInfoParser

protected ExtensionDiscovery::getInfoParser() Returns a parser for .info.yml files. Return value \Drupal\Core\Extension\InfoParser The InfoParser instance. File core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 512 Class ExtensionDiscovery Discovers available extensions in the filesystem. Namespace Drupal\Core\Extension Code protected function getInfoParser() { if (!isset($this->infoParser)) { $this->infoParser = new InfoParser(); } return $this->infoParse

StreamWrapperManager::getDescriptions

public StreamWrapperManager::getDescriptions($filter = StreamWrapperInterface::ALL) Returns registered stream wrapper descriptions. Parameters int $filter: (Optional) Filters out all types except those with an on bit for each on bit in $filter. For example, if $filter is StreamWrapperInterface::WRITE_VISIBLE, which is equal to (StreamWrapperInterface::READ | StreamWrapperInterface::WRITE | StreamWrapperInterface::VISIBLE), then only stream wrappers with all three of these bits set are returned