Tableselect::getInfo

public Tableselect::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides Table::getInfo File core/lib/Drupal/Core/Render/Element/Tableselect.php, line 58 Class Tableselect Provides a form element for a table with radios or checkboxes in left column. Namespace Drupal\Co

Tableselect::preRenderTableselect

public static Tableselect::preRenderTableselect($element) Prepares a 'tableselect' #type element for rendering. Adds a column of radio buttons or checkboxes for each row of a table. Parameters array $element: An associative array containing the properties and children of the tableselect element. Properties used: #header, #options, #empty, and #js_select. The #options property is an array of selection options; each array element of #options is an array of properties. These properties can includ

Tableselect

Provides a form element for a table with radios or checkboxes in left column. Properties: #header: An array of table header labels. #options: An associative array where each key is the value returned when a user selects the radio button or checkbox, and each value is the row of table data. #empty: The message to display if table does not have any options. #multiple: Set to FALSE to render the table with radios instead checkboxes. #js_select: Set to FALSE if you don't want the select all ch

Tables::ensureEntityTable

protected Tables::ensureEntityTable($index_prefix, $property, $type, $langcode, $base_table, $id_field, $entity_tables) Join entity table if necessary and return the alias for it. Parameters string $property: Return value string Throws \Drupal\Core\Entity\Query\QueryException File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 295 Class Tables Adds tables and fields to the SQL entity query. Namespace Drupal\Core\Entity\Query\Sql Code protected function ensureEntityTable($ind

Tables::getTableMapping

protected Tables::getTableMapping($table, $entity_type_id) Gets the schema for the given table. Parameters string $table: The table name. Return value array|bool The table field mapping for the given table or FALSE if not available. File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 359 Class Tables Adds tables and fields to the SQL entity query. Namespace Drupal\Core\Entity\Query\Sql Code protected function getTableMapping($table, $entity_type_id) { $storage = $this->e

Tables::ensureFieldTable

protected Tables::ensureFieldTable($index_prefix, &$field, $type, $langcode, $base_table, $entity_id_field, $field_id_field, $delta) Join field table if necessary. Parameters $field_name: Name of the field. Return value string Throws \Drupal\Core\Entity\Query\QueryException File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 315 Class Tables Adds tables and fields to the SQL entity query. Namespace Drupal\Core\Entity\Query\Sql Code protected function ensureFieldTable($in

Tables::__construct

public Tables::__construct(SelectInterface $sql_query) Parameters \Drupal\Core\Database\Query\SelectInterface $sql_query: File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 56 Class Tables Adds tables and fields to the SQL entity query. Namespace Drupal\Core\Entity\Query\Sql Code public function __construct(SelectInterface $sql_query) { $this->sqlQuery = $sql_query; $this->entityManager = \Drupal::entityManager(); }

Tables::addJoin

protected Tables::addJoin($type, $table, $join_condition, $langcode, $delta = NULL) File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 330 Class Tables Adds tables and fields to the SQL entity query. Namespace Drupal\Core\Entity\Query\Sql Code protected function addJoin($type, $table, $join_condition, $langcode, $delta = NULL) { $arguments = array(); if ($langcode) { $entity_type_id = $this->sqlQuery->getMetaData('entity_type'); $entity_type = $this->entit

Tables::isFieldCaseSensitive

public Tables::isFieldCaseSensitive($field_name) Determines whether the given field is case sensitive. This information can only be provided after it was added with addField(). Parameters string $field_name: The name of the field. Return value bool|null TRUE if the field is case sensitive, FALSE if not. Returns NULL when the field did not define if it is case sensitive or not. Overrides TablesInterface::isFieldCaseSensitive File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 280 Cl

Tables::$entityTables

Entity table array, key is table name, value is alias. This array contains at most two entries: one for the data, one for the properties. Type: array File core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 28 Class Tables Adds tables and fields to the SQL entity query. Namespace Drupal\Core\Entity\Query\Sql Code protected $entityTables = array();