public property ViewExecutable::$element

A render array container to store render related information.

For example you can alter the array and attach some css/js via the #attached key. This is the required way to add custom css/js.

Type: array

See also

drupal_process_attached

File

drupal/core/modules/views/lib/Drupal/views/ViewExecutable.php, line 410
Definition of Drupal\views\ViewExecutable.

Class

ViewExecutable
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Namespace

Drupal\views

Code

public $element = array(
  '#attached' => array(
    'css' => array(),
    'js' => array(),
    'library' => array(),
  ),
);