Views::getViewsAsOptions

public static Views::getViewsAsOptions($views_only = FALSE, $filter = 'all', $exclude_view = NULL, $optgroup = FALSE, $sort = FALSE) Returns an array of view as options array, that can be used by select, checkboxes and radios as #options. Parameters bool $views_only: If TRUE, only return views, not displays. string $filter: Filters the views on status. Can either be 'all' (default), 'enabled' or 'disabled' mixed $exclude_view: view or current display to exclude either a views object (containin

ViewAjaxResponse::setView

public ViewAjaxResponse::setView(ViewExecutable $view) Sets the executed view of this response. Parameters \Drupal\views\ViewExecutable $view: The View executed on this ajax request. File core/modules/views/src/Ajax/ViewAjaxResponse.php, line 28 Class ViewAjaxResponse Custom JSON response object for an ajax view response. Namespace Drupal\views\Ajax Code public function setView(ViewExecutable $view) { $this->view = $view; }

LibraryDiscoveryParser

Parses library files to get extension data. Hierarchy class \Drupal\Core\Asset\LibraryDiscoveryParser File core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php, line 18 Namespace Drupal\Core\Asset Members Name Modifiers Type Description LibraryDiscoveryParser::$moduleHandler protected property The module handler. LibraryDiscoveryParser::$root protected property The app root. LibraryDiscoveryParser::$themeManager protected property The theme manager. Li

ConfigSingleImportForm::__construct

public ConfigSingleImportForm::__construct(EntityManagerInterface $entity_manager, StorageInterface $config_storage, RendererInterface $renderer, EventDispatcherInterface $event_dispatcher, ConfigManagerInterface $config_manager, LockBackendInterface $lock, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, ThemeHandlerInterface $theme_handler) Constructs a new ConfigSingleImportForm. Parameters \Drupal\Core\Entity\Ent

BreakpointInterface::getWeight

public BreakpointInterface::getWeight() Returns the weight. Return value int The weight. File core/modules/breakpoint/src/BreakpointInterface.php, line 24 Class BreakpointInterface Interface for Breakpoint plugins. Namespace Drupal\breakpoint Code public function getWeight();

BatchStorageInterface::update

public BatchStorageInterface::update(array $batch) Updates a batch. Parameters array $batch: The array representing the batch to update. File core/lib/Drupal/Core/Batch/BatchStorageInterface.php, line 35 Class BatchStorageInterface Defines a common interface for batch storage operations. Namespace Drupal\Core\Batch Code public function update(array $batch);

DataReferenceInterface::getTarget

public DataReferenceInterface::getTarget() Gets the referenced data. Return value \Drupal\Core\TypedData\TypedDataInterface|null The referenced typed data object, or NULL if the reference is unset. File core/lib/Drupal/Core/TypedData/DataReferenceInterface.php, line 18 Class DataReferenceInterface Interface for typed data references. Namespace Drupal\Core\TypedData Code public function getTarget();

language_entity_base_field_info_alter

language_entity_base_field_info_alter(&$fields) Implements hook_entity_base_field_info_alter(). File core/modules/language/language.module, line 167 Add language handling functionality to Drupal. Code function language_entity_base_field_info_alter(&$fields) { foreach ($fields as $definition) { // Set configurable form display for language fields with display options. if ($definition->getType() == 'language') { foreach (array('form', 'view') as $type) { if ($

TriggerPreviewCommand::render

public TriggerPreviewCommand::render() Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render File core/modules/views/src/Ajax/TriggerPreviewCommand.php, line 17 Class TriggerPreviewCommand Provides an AJAX command for triggering the views live preview. Namespace Drupal\views\Ajax Code public function render() { return array( 'command' => 'viewsTriggerPreview', ); }

DataDefinition::addConstraint

public DataDefinition::addConstraint($constraint_name, $options = NULL) Adds a validation constraint. See \Drupal\Core\TypedData\DataDefinitionInterface::getConstraints() for details. Parameters string $constraint_name: The name of the constraint to add, i.e. its plugin id. array|null $options: The constraint options as required by the constraint plugin, or NULL. Return value static The object itself for chaining. Overrides DataDefinitionInterface::addConstraint File core/lib/Drupal/Core/Type