Role::setIsAdmin

public Role::setIsAdmin($is_admin) Sets the role to be an admin role. Parameters bool $is_admin: TRUE if the role should be an admin role. Return value $this Overrides RoleInterface::setIsAdmin File core/modules/user/src/Entity/Role.php, line 153 Class Role Defines the user role entity class. Namespace Drupal\user\Entity Code public function setIsAdmin($is_admin) { $this->is_admin = $is_admin; return $this; }

Query::$keyValueFactory

The key value factory. Type: \Drupal\Core\KeyValueStore\KeyValueFactoryInterface File core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php, line 19 Class Query Defines the entity query for entities stored in a key value backend. Namespace Drupal\Core\Entity\KeyValueStore\Query Code protected $keyValueFactory;

EntityForm::submitForm

public EntityForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless the en

ConfigurableLanguage::$locked

Locked languages cannot be edited. Type: bool File core/modules/language/src/Entity/ConfigurableLanguage.php, line 77 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code protected $locked = FALSE;

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

hook_entity_type_build

hook_entity_type_build(array &$entity_types) Add to entity type definitions. Modules may implement this hook to add information to defined entity types, as defined in \Drupal\Core\Entity\EntityTypeInterface. To alter existing information or to add information dynamically, use hook_entity_type_alter(). Parameters \Drupal\Core\Entity\EntityTypeInterface[] $entity_types: An associative array of all entity type definitions, keyed by the entity type name. Passed by reference. See also \Drupal\

shortcut_preprocess_block

shortcut_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/shortcut/shortcut.module, line 294 Allows users to manage customizable lists of shortcut links. Code function shortcut_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'shortcut') { $variables['attributes']['role'] = 'navigation'; } }

RestripeCommand

AJAX command for resetting the striping on a table. The 'restripe' command instructs the client to restripe a table. This is usually used after a table has been modified by a replace or append command. This command is implemented by Drupal.AjaxCommands.prototype.restripe() defined in misc/ajax.js. Hierarchy class \Drupal\Core\Ajax\RestripeCommand implements CommandInterface Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/RestripeCommand.php, line 16

FilterFormatListBuilder::$configFactory

The config factory service. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/modules/filter/src/FilterFormatListBuilder.php, line 30 Class FilterFormatListBuilder Defines a class to build a listing of filter format entities. Namespace Drupal\filter Code protected $configFactory;

Item::setLink

public Item::setLink($link) Sets the link to the feed item. Parameters string $link: The link to the feed item. Return value \Drupal\aggregator\ItemInterface The called feed item entity. Overrides ItemInterface::setLink File core/modules/aggregator/src/Entity/Item.php, line 153 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function setLink($link) { return $this->set('link', $link); }