FilterFormatFormBase::validateForm

public FilterFormatFormBase::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/filter/src/FilterFormatFormBase.php, line 201 Class FilterFormatFormBase Provides a base form for a filter format. Namespace Drupal\filter Code public functi

Merge::execute

public Merge::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. Overrides Query::execute File core/lib/Drupal/Core/Database/Query/Merge.php, line 352 Class Merge General class for an abstracted MERGE query operation. Namespace Drupal\Core\Database\Query Code public function execute() { // Default options for merge queries. $this->queryOptions += array( 'throw_exc

FieldStorageConfig::setSetting

public FieldStorageConfig::setSetting($setting_name, $value) Sets the value for a field setting by name. Parameters string $setting_name: The name of the setting. mixed $value: The value of the setting. Return value $this Overrides FieldStorageConfigInterface::setSetting File core/modules/field/src/Entity/FieldStorageConfig.php, line 569 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function setSetting($setting_name

menu_primary_local_tasks

menu_primary_local_tasks() Returns the rendered local tasks at the top level. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 122 API for the Drupal menu system. Code function menu_primary_local_tasks() { /** @var \Drupal\Core\Menu\LocalTaskManagerInterface $manager */ $manager = \Drupal::service('plugin.manager.menu.local_task');

ContentEntityBase::__set

public ContentEntityBase::__set($name, $value) Implements the magic method for setting object properties. Uses default language always. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 919 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __set($name, $value) { // Inline getFieldDefinition() to speed things up. if (!isset($this->fieldDefinitions)) { $this->getFieldDe

AccountPermissionsCacheContext::$permissionsHashGenerator

The permissions hash generator. Type: \Drupal\Core\Session\PermissionsHashGeneratorInterface File core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php, line 21 Class AccountPermissionsCacheContext Defines the AccountPermissionsCacheContext service, for "per permission" caching. Namespace Drupal\Core\Cache\Context Code protected $permissionsHashGenerator;

Item::setTitle

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

NodeDeleteForm

Provides a form for deleting a node. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase implements ConfirmFo

views_set_current_view

&views_set_current_view($view = NULL) Set the current 'current view' that is being built/rendered so that it is easy for other modules or items in drupal_eval to identify Return value \Drupal\views\ViewExecutable File core/modules/views/views.module, line 485 Primarily Drupal hooks and global API functions to manipulate views. Code function &views_set_current_view($view = NULL) { static $cache = NULL; if (isset($view)) { $cache = $view; } return $cache; }

DefaultTableMapping::getTableNames

public DefaultTableMapping::getTableNames() Gets a list of table names for this mapping. Return value string[] An array of table names. Overrides TableMappingInterface::getTableNames File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 95 Class DefaultTableMapping Defines a default table mapping class. Namespace Drupal\Core\Entity\Sql Code public function getTableNames() { return array_unique(array_merge(array_keys($this->fieldNames), array_keys($this->extraColum