NodeType::postDelete

public static NodeType::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides ConfigEntityBundleBase::postDelete File core/modules/node/src/Entity/NodeType.php, line 201 Class NodeTy

Connection::$connection

The actual PDO connection. Type: \PDO File core/lib/Drupal/Core/Database/Connection.php, line 97 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $connection;

RequestPolicyInterface::DENY

Deny delivery of cached pages. File core/lib/Drupal/Core/PageCache/RequestPolicyInterface.php, line 24 Class RequestPolicyInterface Defines the interface for request policy implementations. Namespace Drupal\Core\PageCache Code const DENY = 'deny';

ImageStyleFormBase::__construct

public ImageStyleFormBase::__construct(EntityStorageInterface $image_style_storage) Constructs a base class for image style add and edit forms. Parameters \Drupal\Core\Entity\EntityStorageInterface $image_style_storage: The image style entity storage. File core/modules/image/src/Form/ImageStyleFormBase.php, line 35 Class ImageStyleFormBase Base form for image style add and edit forms. Namespace Drupal\image\Form Code public function __construct(EntityStorageInterface $image_style_stor

ImageStyleDeleteForm::$replacementOptions

Replacement options. Type: array File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 18 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code protected $replacementOptions;

Renderer::renderPlain

public Renderer::renderPlain(&$elements) Renders final HTML in situations where no assets are needed. Calls ::render() in such a way that placeholders are replaced. Useful for instance when rendering the values of tokens or emails, which need a render array being turned into a string, but do not need any of the bubbleable metadata (the attached assets and cache tags). Some of these are a relatively common use case and happen *within* a ::renderRoot() call, but that is generally highly probl

TwigExtension::renderVar

public TwigExtension::renderVar($arg) Wrapper around render() for twig printed output. If an object is passed which does not implement __toString(), RenderableInterface or toString() then an exception is thrown; Other objects are casted to string. However in the case that the object is an instance of a Twig_Markup object it is returned directly to support auto escaping. If an array is passed it is rendered via render() and scalar values are returned directly. Parameters mixed $arg: String, Obj

FieldStorageDefinitionInterface::getTargetEntityTypeId

public FieldStorageDefinitionInterface::getTargetEntityTypeId() Returns the ID of the entity type the field is attached to. This method should not be confused with EntityInterface::getEntityTypeId() (configurable fields are config entities, and thus implement both interfaces): FieldStorageDefinitionInterface::getTargetEntityTypeId() answers "as a field storage, which entity type are you attached to?". EntityInterface::getEntityTypeId() answers "as a (config) entity, what is your own entity typ

EntityForm::save

public EntityForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation

ManyToOneHelper::addFilter

public ManyToOneHelper::addFilter() File core/modules/views/src/ManyToOneHelper.php, line 255 Class ManyToOneHelper This many to one helper object is used on both arguments and filters. Namespace Drupal\views Code public function addFilter() { if (empty($this->handler->value)) { return; } $this->handler->ensureMyTable(); // Shorten some variables: $field = $this->getField(); $options = $this->handler->options; $operator = $this->handler->op