taxonomy_vocabulary_get_names

taxonomy_vocabulary_get_names() Get names for all taxonomy vocabularies. Return value array A list of existing vocabulary IDs. File core/modules/taxonomy/taxonomy.module, line 306 Enables the organization of content into categories. Code function taxonomy_vocabulary_get_names() { $names = &drupal_static(__FUNCTION__); if (!isset($names)) { $names = array(); $config_names = \Drupal::configFactory()->listAll('taxonomy.vocabulary.'); foreach ($config_names as $config_nam

file_directory_temp

file_directory_temp() Gets and sets the path of the configured temporary directory. Return value mixed|null A string containing the path to the temporary directory. Related topics File interface Common file handling functions. File core/includes/file.inc, line 1188 API for handling file uploads and server file management. Code function file_directory_temp() { $temporary_directory = \Drupal::config('system.file')->get('path.temporary'); if (empty($temporary_directory)) { // Needs

FormState::isCached

public FormState::isCached() Determines if the form should be cached. Return value bool TRUE if the form should be cached, FALSE otherwise. Overrides FormStateInterface::isCached File core/lib/Drupal/Core/Form/FormState.php, line 514 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function isCached() { return empty($this->no_cache) && $this->cache; }

ViewEditForm::__construct

public ViewEditForm::__construct(SharedTempStoreFactory $temp_store_factory, RequestStack $requestStack, DateFormatterInterface $date_formatter, ElementInfoManagerInterface $element_info) Constructs a new ViewEditForm object. Parameters \Drupal\user\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object. \Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack object. \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date Format

DataReferenceDefinition::createFromDataType

public static DataReferenceDefinition::createFromDataType($data_type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The dat

DrupalTranslator::getLocale

public DrupalTranslator::getLocale() Returns the current locale. Return value string The locale Overrides TranslatorInterface::getLocale File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 65 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code public function getLocale() { return $this->locale ? $this->locale : \Drupal::languageManager()->getCurrentLanguage()->getId(); }

Query::execute

abstract protected Query::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. File core/lib/Drupal/Core/Database/Query/Query.php, line 108 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code abstract protected function execute();

ViewExecutable::getHandlers

public ViewExecutable::getHandlers($type, $display_id = NULL) Gets an array of handler instances for the current display. Parameters string $type: The type of handlers to retrieve. string $display_id: (optional) A specific display machine name to use. If NULL, the current display will be used. Return value array An array of handler instances of a given type for this display. File core/modules/views/src/ViewExecutable.php, line 2237 Class ViewExecutable Represents a view as a whole. Nam

RoleListBuilder::submitForm

public RoleListBuilder::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides DraggableListBuilder::submitForm File core/modules/user/src/RoleListBuilder.php, line 58 Class RoleListBuilder Defines a class to build a listing of user role entities. Namespace Drupal\user Code public fu

ViewUI::unsetThirdPartySetting

public ViewUI::unsetThirdPartySetting($module, $key) Unsets a third-party setting. Parameters string $module: The module providing the third-party setting. string $key: The setting name. Return value mixed The value. Overrides ThirdPartySettingsInterface::unsetThirdPartySetting File core/modules/views_ui/src/ViewUI.php, line 1290 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function unsetThirdPartySetting($module, $key) { return $this->