BlockContentForm::prepareEntity

protected BlockContentForm::prepareEntity() Overrides \Drupal\Core\Entity\EntityForm::prepareEntity(). Prepares the custom block object. Fills in a few default values, and then invokes hook_block_content_prepare() on all modules. Overrides EntityForm::prepareEntity File core/modules/block_content/src/BlockContentForm.php, line 86 Class BlockContentForm Form handler for the custom block edit forms. Namespace Drupal\block_content Code protected function prepareEntity() { $block = $this

Date

Provides a form element for date selection. Properties: #default_value: An array with the keys: 'year', 'month', and 'day'. Defaults to the current date if no value is supplied. $form['expiration'] = array( '#type' => 'date', '#title' => $this->t('Content expiration'), '#default_value' => array('year' => 2020, 'month' => 2, 'day' => 15,) ); Plugin annotation @FormElement("date") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionIn

EntityConstraintViolationList::__construct

public EntityConstraintViolationList::__construct(FieldableEntityInterface $entity, array $violations = array()) Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: The entity that has been validated. array $violations: The array of violations. Overrides ConstraintViolationList::__construct File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 50 Class EntityConstraintViolationList Implements an entity constraint violation list. Namespace Drupal\Core\Ent

ResponsiveImageStyleForm::form

public ResponsiveImageStyleForm::form(array $form, FormStateInterface $form_state) Overrides Drupal\Core\Entity\EntityForm::form(). Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The array containing the complete form. Overrides EntityForm::form File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 52 Class ResponsiveImageStyleForm Form contro

ViewEditForm::renderDisplayTop

public ViewEditForm::renderDisplayTop(ViewUI $view) Render the top of the display so it can be updated during ajax operations. File core/modules/views_ui/src/ViewEditForm.php, line 672 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function renderDisplayTop(ViewUI $view) { $display_id = $this->displayID; $element['#theme_wrappers'][] = 'views_ui_container'; $element['#attributes']['class'] = array('views-display-top', 'clearfi

ManyToOneHelper::ensureMyTable

public ManyToOneHelper::ensureMyTable() Override ensureMyTable so we can control how this joins in. The operator actually has influence over joining. File core/modules/views/src/ManyToOneHelper.php, line 154 Class ManyToOneHelper This many to one helper object is used on both arguments and filters. Namespace Drupal\views Code public function ensureMyTable() { if (!isset($this->handler->tableAlias)) { // Case 1: Operator is an 'or' and we're not reducing duplicates. // W

ViewExecutable::$exposed_input

An array of input values from exposed forms. Type: array File core/modules/views/src/ViewExecutable.php, line 145 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $exposed_input = array();

Merge

General class for an abstracted MERGE query operation. An ANSI SQL:2003 compatible database would run the following query: MERGE INTO table_name_1 USING table_name_2 ON (condition) WHEN MATCHED THEN UPDATE SET column1 = value1 [, column2 = value2 ...] WHEN NOT MATCHED THEN INSERT (column1 [, column2 ...]) VALUES (value1 [, value2 ... Other databases (most notably MySQL, PostgreSQL and SQLite) will emulate this statement by running a SELECT and then INSERT or UPDATE. By default, the tw

EntityType::$originalClass

The name of the original entity type class. This is only set if the class name is changed. Type: string File core/lib/Drupal/Core/Entity/EntityType.php, line 75 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $originalClass;

FileCache::$prefix

Prefix that is used for cache entries. Type: string File core/lib/Drupal/Component/FileCache/FileCache.php, line 15 Class FileCache Allows to cache data based on file modification dates. Namespace Drupal\Component\FileCache Code protected $prefix;