ViewsFormBase::getFormState

public ViewsFormBase::getFormState(ViewEntityInterface $view, $display_id, $js) Gets the form state for this form. Parameters \Drupal\views\ViewEntityInterface $view: The view being edited. string|null $display_id: The display ID being edited, or NULL to load the first available display. string $js: If this is an AJAX form, it will be the string 'ajax'. Otherwise, it will be 'nojs'. This determines the response. Return value \Drupal\Core\Form\FormStateInterface The current state of the form.

TypedConfigManager::buildDataDefinition

public TypedConfigManager::buildDataDefinition(array $definition, $value, $name = NULL, $parent = NULL) Creates a new data definition object from a type definition array and actual configuration data. Since type definitions may contain variables to be replaced, we need the configuration value to create it. Parameters array $definition: The base type definition array, for which a data definition should be created. $value: Optional value of the configuration element. string $name: Optional name

_toolbar_do_get_rendered_subtrees

_toolbar_do_get_rendered_subtrees(array $data) #pre_render callback for toolbar_get_rendered_subtrees(). File core/modules/toolbar/toolbar.module, line 304 Administration toolbar for quick access to top level administration items. Code function _toolbar_do_get_rendered_subtrees(array $data) { $menu_tree = \Drupal::service('toolbar.menu_tree'); // Load the administration menu. The first level is the "Administration" link. // In order to load the children of that link and the subsequent t

TermInterface::setFormat

public TermInterface::setFormat($format) Sets the text format name for the term's description. Parameters string $format: The term's description text format. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 47 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setFormat($format);

8 #type uses of ToolbarItem

block_place_toolbar in core/modules/block_place/block_place.module Implements hook_toolbar(). contextual_toolbar in core/modules/contextual/contextual.module Implements hook_toolbar(). hook_toolbar in core/modules/toolbar/toolbar.api.php Add items to the toolbar menu. shortcut_toolbar in core/modules/shortcut/shortcut.module Implements hook_toolbar(). toolbar_test_toolbar in core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module Implements hook_toolbar(). toolbar_toolbar

BookOutlineStorage::insert

public BookOutlineStorage::insert($link, $parents) Inserts a book link. Parameters array $link: The link array to be inserted in the database. array $parents: The array of parent ids for the link to be inserted. Return value mixed The last insert ID of the query, if one exists. Overrides BookOutlineStorageInterface::insert File core/modules/book/src/BookOutlineStorage.php, line 128 Class BookOutlineStorage Defines a storage class for books outline. Namespace Drupal\book Code public f

TermInterface::setName

public TermInterface::setName($name) Sets the name of the term. Parameters int $name: The term's name. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 65 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setName($name);

AliasStorage::lookupPathAlias

public AliasStorage::lookupPathAlias($path, $langcode) Returns an alias of Drupal system URL. The default implementation performs case-insensitive matching on the 'source' and 'alias' strings. Parameters string $path: The path to investigate for corresponding path aliases. string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language. Return value string|false A path alias, or FALSE if no path was found. Overrides A

Url::fromRouteUri

protected static Url::fromRouteUri(array $uri_parts, array $options, $uri) Creates a new Url object for 'route:' URIs. Parameters array $uri_parts: Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. array $options: An array of options, see \Drupal\Core\Url::fromUri() for details. string $uri: The original passed in URI. Retu

TypedDataMetadata::accept

public TypedDataMetadata::accept(ValidationVisitorInterface $visitor, $typed_data, $group, $propertyPath) File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 39 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function accept(ValidationVisitorInterface $visitor, $typed_data, $group, $propertyPath) { throw new BadMethodCallException('Not supported.'); }