ElementInfoManagerInterface::getInfo

public ElementInfoManagerInterface::getInfo($type) Retrieves the default properties for the defined element type. Each of the form element types defined by this hook is assumed to have a matching theme hook, which should be registered with hook_theme() as normal. For more information about custom element types see the explanation at https://www.drupal.org/node/169815. Parameters string $type: The machine name of an element type plugin. Return value array An associative array describing the el

MenuTreeStorage::getSubtreeHeight

public MenuTreeStorage::getSubtreeHeight($id) Finds the height of a subtree rooted by the given ID. Parameters string $id: The ID of an item in the storage. Return value int Returns the height of the subtree. This will be at least 1 if the ID exists, or 0 if the ID does not exist in the storage. Overrides MenuTreeStorageInterface::getSubtreeHeight File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 422 Class MenuTreeStorage Provides a menu tree storage using the database. Namespac

ViewDuplicateForm::form

public ViewDuplicateForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/views_ui/src/ViewDuplicateForm.php, line 22 Class ViewDuplicateForm Form controller for the Views duplicate form. Namespace Drupal\views_ui Code public function form(array $form, FormStateInterface $form_state) { parent::form(

QueryAggregateInterface::notExistsAggregate

public QueryAggregateInterface::notExistsAggregate($field, $function, $langcode = NULL) Queries for the nonexistence of a field. Parameters string $field.: The name of a field. string $function: The aggregate function. string $langcode: (optional) The language code. Return value \Drupal\Core\Entity\Query\QueryAggregateInterface The called object. File core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php, line 98 Class QueryAggregateInterface Defines a interface for aggregated en

MenuLinkTreeElement::count

public MenuLinkTreeElement::count() Counts all menu links in the current subtree. Return value int The number of menu links in this subtree (one plus the number of menu links in all descendants). File core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php, line 116 Class MenuLinkTreeElement Provides a value object to model an element in a menu link tree. Namespace Drupal\Core\Menu Code public function count() { $sum = function($carry, MenuLinkTreeElement $element) { return $carry + $

ImageToolkitBase::apply

public ImageToolkitBase::apply($operation, array $arguments = array()) Applies a toolkit operation to an image. Parameters string $operation: The toolkit operation to be processed. array $arguments: An associative array of arguments to be passed to the toolkit operation, e.g. array('width' => 50, 'height' => 100, 'upscale' => TRUE). Return value bool TRUE if the operation was performed successfully, FALSE otherwise. Overrides ImageToolkitInterface::apply File core/lib/Drupal/Core/Ima

BookManager::updateOutline

public BookManager::updateOutline(NodeInterface $node) Handles additions and updates to the book outline. This common helper function performs all additions and updates to the book outline through node addition, node editing, node deletion, or the outline tab. Parameters \Drupal\node\NodeInterface $node: The node that is being saved, added, deleted, or moved. Return value bool TRUE if the book link was saved; FALSE otherwise. Overrides BookManagerInterface::updateOutline File core/modules/boo

User::addRole

public User::addRole($rid) Add a role to a user. Parameters string $rid: The role ID to add. Overrides UserInterface::addRole File core/modules/user/src/Entity/User.php, line 174 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function addRole($rid) { if (in_array($rid, [RoleInterface::AUTHENTICATED_ID, RoleInterface::ANONYMOUS_ID])) { throw new \InvalidArgumentException('Anonymous or authenticated role ID must not be assigned manually.'); }

ConfirmFormBase::getDescription

public ConfirmFormBase::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormInterface::getDescription File core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 13 Class ConfirmFormBase Provides an generic base class for a confirmation form. Namespace Drupal\Core\Form Code public function getDescription() { return $this->t('This action cannot be undone.'); }

MenuLinkDefaultForm::$menuLinkManager

The menu link manager. Type: \Drupal\Core\Menu\MenuLinkManagerInterface File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 36 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $menuLinkManager;