FormBuilder::setInvalidTokenError

public FormBuilder::setInvalidTokenError(FormStateInterface $form_state) Sets a form_token error on the given form state. Parameters \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value $this Overrides FormValidatorInterface::setInvalidTokenError File core/lib/Drupal/Core/Form/FormBuilder.php, line 850 Class FormBuilder Provides form building and processing. Namespace Drupal\Core\Form Code public function setInvalidTokenError(FormStateInterfac

WidgetBase::getWidgetStateParents

protected static WidgetBase::getWidgetStateParents(array $parents, $field_name) Returns the location of processing information within $form_state. Parameters array $parents: The array of #parents where the widget lives in the form. string $field_name: The field name. Return value array The location of processing information within $form_state. File core/lib/Drupal/Core/Field/WidgetBase.php, line 474 Class WidgetBase Base class for 'Field widget' plugin implementations. Namespace Drupa

RenderCache::$cacheContextsManager

The cache contexts manager. Type: \Drupal\Core\Cache\Context\CacheContextsManager File core/lib/Drupal/Core/Render/RenderCache.php, line 40 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code protected $cacheContextsManager;

batch_process

batch_process($redirect = NULL, Url $url = NULL, $redirect_callback = NULL) Processes the batch. This function is generally not needed in form submit handlers; Form API takes care of batches that were set during form submission. Parameters \Drupal\Core\Url|string $redirect: (optional) Either path or Url object to redirect to when the batch has finished processing. Note that to simply force a batch to (conditionally) redirect to a custom location after it is finished processing but to otherwise

WidgetInterface::errorElement

public WidgetInterface::errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) Assigns a field-level validation error to the right widget sub-element. Depending on the widget's internal structure, a field-level validation error needs to be flagged on the right sub-element. Parameters array $element: An array containing the form element for the widget, as generated by formElement(). \Symfony\Component\Validator\ConstraintViolationInter

twig_theme

twig_theme($existing, $type, $theme, $path) Implements hook_theme(). File core/themes/engines/twig/twig.engine, line 15 Handles integration of Twig templates with the Drupal theme system. Code function twig_theme($existing, $type, $theme, $path) { $templates = drupal_find_theme_functions($existing, array($theme)); $templates += drupal_find_theme_templates($existing, '.html.twig', $path); return $templates; }

SqlContentEntityStorageSchema

Defines a schema handler that supports revisionable, translatable entities. Entity types may extend this class and optimize the generated schema for all entity base tables by overriding getEntitySchema() for cross-field optimizations and getSharedTableFieldSchema() for optimizations applying to a single field. Hierarchy class \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorageSchemaInterface uses DependencySerializationTrait File core/lib/Drupal

Feed::deleteItems

public Feed::deleteItems() Deletes all items from a feed. This will also reset the last checked and modified time of the feed and save it. Return value \Drupal\aggregator\FeedInterface The class instance that this method is called on. Overrides FeedInterface::deleteItems See also \Drupal\aggregator\ItemsImporterInterface::delete() File core/modules/aggregator/src/Entity/Feed.php, line 60 Class Feed Defines the aggregator feed entity class. Namespace Drupal\aggregator\Entity Code publ

TypedData

The abstract base class for typed data. Classes deriving from this base class have to declare $value or override getValue() or setValue(). Hierarchy class \Drupal\Core\TypedData\TypedData implements PluginInspectionInterface, TypedDataInterface uses StringTranslationTrait, TypedDataTrait Related topics Typed Data API API for describing data based on a set of available data types. File core/lib/Drupal/Core/TypedData/TypedData.php, line 16 Namespace Drupal\Core\TypedData Members Name

ConfigEntityBase::setUninstalling

public ConfigEntityBase::setUninstalling($uninstalling) File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 226 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function setUninstalling($uninstalling) { $this->isUninstalling = $uninstalling; }