Views::getApplicableViews

public static Views::getApplicableViews($type) Return a list of all view IDs and display IDs that have a particular setting in their display's plugin settings. array( array($view_id, $display_id), array($view_id, $display_id), ); Parameters string $type: A flag from the display plugin definitions (e.g, 'uses_menu_links'). Return value array A list of arrays containing the $view_id and $display_id. File core/modules/views/src/Views.php, line 205 Class Views Static service container w

Views::getAllViews

public static Views::getAllViews() Returns an array of all views as fully loaded $view objects. Return value \Drupal\views\Entity\View[] An array of loaded view entities. File core/modules/views/src/Views.php, line 244 Class Views Static service container wrapper for views. Namespace Drupal\views Code public static function getAllViews() { return \Drupal::entityManager()->getStorage('view')->loadMultiple(); }

Views::getEnabledDisplayExtenders

public static Views::getEnabledDisplayExtenders() Gets enabled display extenders. File core/modules/views/src/Views.php, line 183 Class Views Static service container wrapper for views. Namespace Drupal\views Code public static function getEnabledDisplayExtenders() { $enabled = array_filter((array) \Drupal::config('views.settings')->get('display_extenders')); return array_combine($enabled, $enabled); }

Views::$translationManager

The translation manager. Type: \Drupal\Core\StringTranslation\TranslationInterface File core/modules/views/src/Views.php, line 15 Class Views Static service container wrapper for views. Namespace Drupal\views Code protected static $translationManager;

Views::$handlerTypes

A static cache for handler types data. Type: array File core/modules/views/src/Views.php, line 22 Class Views Static service container wrapper for views. Namespace Drupal\views Code protected static $handlerTypes;

views.views_execution.inc

Provides views runtime hooks for views.module. File core/modules/views/views.views_execution.inc Functions Name Description views_views_query_substitutions Implements hook_views_query_substitutions().

Views::executableFactory

public static Views::executableFactory() Returns the view executable factory service. Return value \Drupal\views\ViewExecutableFactory Returns a views executable factory. File core/modules/views/src/Views.php, line 77 Class Views Static service container wrapper for views. Namespace Drupal\views Code public static function executableFactory() { return \Drupal::service('views.executable'); }

Views::analyzer

public static Views::analyzer() Returns the view analyzer. Return value \Drupal\views\Analyzer Returns a view analyzer object. File core/modules/views/src/Views.php, line 87 Class Views Static service container wrapper for views. Namespace Drupal\views Code public static function analyzer() { return \Drupal::service('views.analyzer'); }

views.theme.inc

Preprocessors and helper functions to make theming easier. File core/modules/views/views.theme.inc Functions Name Description template_preprocess_views_exposed_form Prepares variables for views exposed form templates. template_preprocess_views_mini_pager Prepares variables for views mini-pager templates. template_preprocess_views_view Prepares variables for view templates. template_preprocess_views_view_field Prepares variables for views field templates. template_preproc

views.module

Primarily Drupal hooks and global API functions to manipulate views. File core/modules/views/views.module Functions Name Description views_add_contextual_links Adds contextual links associated with a view display to a renderable array. views_disable_view Disables and saves a view. views_element_validate_tags Validation callback for query tags. views_embed_view Embed a view using a PHP snippet. views_enable_view Enables and saves a view. views_field_config_delete Im