Drupal 8  8.0.2
EntityLanguageTestBase Class Reference
Inheritance diagram for EntityLanguageTestBase:

Static Public Attributes

static $modules = array('language', 'entity_test')
 
- Static Public Attributes inherited from EntityUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'filter', 'entity_test']
 

Protected Member Functions

 setUp ()
 
 toggleFieldTranslatability ($entity_type, $bundle)
 
- Protected Member Functions inherited from EntityUnitTestBase
 setUp ()
 
 createUser ($values=array(), $permissions=array())
 
 reloadEntity (EntityInterface $entity)
 
 getHooksInfo ()
 
 installModule ($module)
 
 uninstallModule ($module)
 
 refreshServices ()
 
 generateRandomEntityId ($string=FALSE)
 

Protected Attributes

 $languageManager
 
 $langcodes
 
 $fieldName
 
 $untranslatableFieldName
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Detailed Description

Base class for language-aware entity tests.

Member Function Documentation

toggleFieldTranslatability (   $entity_type,
  $bundle 
)
protected

Toggles field storage translatability.

Parameters
string$entity_typeThe type of the entity fields are attached to.

References Drupal\cache(), and FieldConfig\loadByName().

Referenced by FieldTranslationSqlStorageTest\testFieldSqlStorage().

Here is the call graph for this function:

Here is the caller graph for this function:


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