Update to Drupal 8.0.5. For more information, see https://www.drupal.org/node/2679347
This commit is contained in:
parent
2a9f1f148d
commit
fd3b12cf27
251 changed files with 5439 additions and 957 deletions
|
@ -27,7 +27,7 @@ use Drupal\Core\Render\Element;
|
|||
* @code
|
||||
* $form['actions']['preview'] = array(
|
||||
* '#type' => 'button',
|
||||
* '#value => $this->t('Preview'),
|
||||
* '#value' => $this->t('Preview'),
|
||||
* );
|
||||
* @endcode
|
||||
*
|
||||
|
|
|
@ -16,13 +16,40 @@ use Drupal\Core\StringTranslation\TranslatableMarkup;
|
|||
* Provides a form element for a table with radios or checkboxes in left column.
|
||||
*
|
||||
* Properties:
|
||||
* - #header: Table headers used in the table.
|
||||
* - #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 checkbox added to
|
||||
* the header.
|
||||
*
|
||||
* Other properties of the \Drupal\Core\Render\Element\Table element are also
|
||||
* available.
|
||||
*
|
||||
* Usage example:
|
||||
* See https://www.drupal.org/node/945102 for an example and full explanation.
|
||||
* @code
|
||||
* $header = [
|
||||
* 'first_name' => t('First Name'),
|
||||
* 'last_name' => t('Last Name'),
|
||||
* ];
|
||||
*
|
||||
* $options = [
|
||||
* 1 => ['first_name' => 'Indy', 'last_name' => 'Jones'],
|
||||
* 2 => ['first_name' => 'Darth', 'last_name' => 'Vader'],
|
||||
* 3 => ['first_name' => 'Super', 'last_name' => 'Man'],
|
||||
* ];
|
||||
*
|
||||
* $form['table'] = array(
|
||||
* '#type' => 'tableselect',
|
||||
* '#header' => $header,
|
||||
* '#options' => $options,
|
||||
* '#empty' => t('No users found'),
|
||||
* );
|
||||
* @endcode
|
||||
*
|
||||
* See https://www.drupal.org/node/945102 for a full explanation.
|
||||
*
|
||||
* @see \Drupal\Core\Render\Element\Table
|
||||
*
|
||||
|
|
Reference in a new issue