views_enable_view

views_enable_view(View $view) Enables and saves a view. Parameters \Drupal\views\Entity\View $view: The View object to disable. File core/modules/views/views.module, line 582 Primarily Drupal hooks and global API functions to manipulate views. Code function views_enable_view(View $view) { $view->enable()->save(); }

ConfigDependencyDeleteFormTrait::t

abstract protected ConfigDependencyDeleteFormTrait::t($string, array $args = array(), array $options = array()) Translates a string to the current language or to a given language. Provided by \Drupal\Core\StringTranslation\StringTranslationTrait. Overrides StringTranslationTrait::t File core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php, line 20 Class ConfigDependencyDeleteFormTrait Lists affected configuration entities by a dependency removal. Namespace Drupal\Core\

hook_field_views_data_views_data_alter

hook_field_views_data_views_data_alter(array &$data, \Drupal\field\FieldStorageConfigInterface $field) Alter the Views data on a per field basis. The field module's implementation of hook_views_data_alter() invokes this for each field storage, in the module that defines the field type. It is not invoked in other modules. Unlike hook_field_views_data_alter(), this operates on the whole of the views data. This allows a field type to add data that concerns its fields in other tables, which wou

ConfigTranslationDeleteForm::getQuestion

public ConfigTranslationDeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php, line 86 Class ConfigTranslationDeleteForm Builds a form to delete configuration translation. Namespace Drupal\config_translation\Form Code public function getQuestion() { return $this->t('Are

text_help

text_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/text/text.module, line 16 Defines simple text field types. Code function text_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.text': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Text module allows you to create short and long text fields with optional summaries. See the <

PoStreamReader::$_fd

File handle of the current PO stream. Type: resource File core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 70 Class PoStreamReader Implements Gettext PO stream reader. Namespace Drupal\Component\Gettext Code private $_fd;

MemoryBackend::reset

public MemoryBackend::reset() Reset statically cached variables. This is only used by tests. File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 220 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function reset() { $this->cache = []; }

ContentTranslationManagerInterface::getTranslationMetadata

public ContentTranslationManagerInterface::getTranslationMetadata(EntityInterface $translation) Returns an instance of the Content translation metadata. Parameters \Drupal\Core\Entity\EntityInterface $translation: The entity translation whose metadata needs to be retrieved. Return value \Drupal\content_translation\ContentTranslationMetadataWrapperInterface An instance of the content translation metadata. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 51

ForumManager

Provides forum manager service. Hierarchy class \Drupal\forum\ForumManager implements ForumManagerInterface uses DependencySerializationTrait, StringTranslationTrait File core/modules/forum/src/ForumManager.php, line 18 Namespace Drupal\forum Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization. DependencySerializationTrait::__sleep public function

MachineName::processMachineName

public static MachineName::processMachineName(&$element, FormStateInterface $form_state, &$complete_form) Processes a machine-readable name form element. Parameters array $element: The form element to process. See main class documentation for properties. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. array $complete_form: The complete form structure. Return value array The processed element. File core/lib/Drupal/Core/Render/Element/MachineName.php, li