Drupal 8  8.0.2
VocabularyStorage Class Reference
Inheritance diagram for VocabularyStorage:

Public Member Functions

 resetCache (array $ids=NULL)
 
 getToplevelTids ($vids)
 
- Public Member Functions inherited from ConfigEntityStorage
 __construct (EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager)
 
 loadRevision ($revision_id)
 
 deleteRevision ($revision_id)
 
 save (EntityInterface $entity)
 
 importCreate ($name, Config $new_config, Config $old_config)
 
 importUpdate ($name, Config $new_config, Config $old_config)
 
 importDelete ($name, Config $new_config, Config $old_config)
 
 importRename ($old_name, Config $new_config, Config $old_config)
 
 createFromStorageRecord (array $values)
 
 updateFromStorageRecord (ConfigEntityInterface $entity, array $values)
 
 loadOverrideFree ($id)
 
 loadMultipleOverrideFree (array $ids=NULL)
 
- Public Member Functions inherited from EntityStorageBase
 __construct (EntityTypeInterface $entity_type)
 
 getEntityTypeId ()
 
 getEntityType ()
 
 loadUnchanged ($id)
 
 resetCache (array $ids=NULL)
 
 create (array $values=array())
 
 load ($id)
 
 loadMultiple (array $ids=NULL)
 
 delete (array $entities)
 
 save (EntityInterface $entity)
 
 loadByProperties (array $values=array())
 
 getQuery ($conjunction= 'AND')
 
 getAggregateQuery ($conjunction= 'AND')
 
- Public Member Functions inherited from EntityHandlerBase
 setModuleHandler (ModuleHandlerInterface $module_handler)
 

Additional Inherited Members

- Static Public Member Functions inherited from ConfigEntityStorage
static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 
static getIDFromConfigName ($config_name, $config_prefix)
 
- Data Fields inherited from ConfigEntityStorage
const MAX_ID_LENGTH = 166
 
- Data Fields inherited from EntityStorageInterface
const FIELD_LOAD_CURRENT = 'FIELD_LOAD_CURRENT'
 
const FIELD_LOAD_REVISION = 'FIELD_LOAD_REVISION'
 
- Protected Member Functions inherited from ConfigEntityStorage
 getPrefix ()
 
 doCreate (array $values)
 
 doDelete ($entities)
 
 doSave ($id, EntityInterface $entity)
 
 mapToStorageRecord (EntityInterface $entity)
 
 has ($id, EntityInterface $entity)
 
 getFromStaticCache (array $ids)
 
 setStaticCache (array $entities)
 
 invokeHook ($hook, EntityInterface $entity)
 
 getQueryServiceName ()
 
- Protected Member Functions inherited from EntityStorageBase
 getFromStaticCache (array $ids)
 
 setStaticCache (array $entities)
 
 invokeHook ($hook, EntityInterface $entity)
 
 doCreate (array $values)
 
 doLoadMultiple (array $ids=NULL)
 
 postLoad (array &$entities)
 
 mapFromStorageRecords (array $records)
 
 has ($id, EntityInterface $entity)
 
 doDelete ($entities)
 
 doPreSave (EntityInterface $entity)
 
 doSave ($id, EntityInterface $entity)
 
 doPostSave (EntityInterface $entity, $update)
 
 buildPropertyQuery (QueryInterface $entity_query, array $values)
 
 getQueryServiceName ()
 
- Protected Member Functions inherited from EntityHandlerBase
 moduleHandler ()
 
- Protected Attributes inherited from ConfigEntityStorage
 $uuidKey = 'uuid'
 
 $configFactory
 
 $configStorage
 
 $languageManager
 
 $entities = array()
 
 $overrideFree = FALSE
 
- Protected Attributes inherited from EntityStorageBase
 $entities = array()
 
 $entityTypeId
 
 $entityType
 
 $idKey
 
 $uuidKey
 
 $langcodeKey
 
 $uuidService
 
 $entityClass
 
- Protected Attributes inherited from EntityHandlerBase
 $moduleHandler
 

Detailed Description

Defines a controller class for taxonomy vocabularies.

Member Function Documentation

getToplevelTids (   $vids)

{Gets top-level term IDs of vocabularies.

Parameters
array$vidsArray of vocabulary IDs.
Returns
array Array of top-level term IDs.
}

Implements VocabularyStorageInterface.

References db_query().

Here is the call graph for this function:

resetCache ( array  $ids = NULL)

{Resets the internal, static entity cache.

Parameters
$ids(optional) If specified, the cache is reset for the entities with the given ids only.
}

Implements EntityStorageInterface.


The documentation for this class was generated from the following file: