Drupal 8  8.0.2
ViewMode Class Reference
Inheritance diagram for ViewMode:

Public Member Functions

 query ()
 
 fields ()
 
 getIds ()
 
 calculateDependencies ()
 
- Public Member Functions inherited from ViewModeBase
 count ()
 
 getViewModes ()
 
- Public Member Functions inherited from DrupalSqlBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager)
 
 getSystemData ()
 
 checkRequirements ()
 
 calculateDependencies ()
 
- Public Member Functions inherited from SqlBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state)
 
 __toString ()
 
 getDatabase ()
 
 query ()
 
 count ()
 
- Public Member Functions inherited from SourcePluginBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration)
 
 prepareRow (Row $row)
 
 current ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 next ()
 
 getCurrentIds ()
 
 count ($refresh=FALSE)
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Protected Member Functions

 initializeIterator ()
 
- Protected Member Functions inherited from DrupalSqlBase
 getModuleSchemaVersion ($module)
 
 moduleExists ($module)
 
 variableGet ($name, $default)
 
- Protected Member Functions inherited from SqlBase
 setUpDatabase (array $database_info)
 
 select ($table, $alias=NULL, array $options=array())
 
 prepareQuery ()
 
 initializeIterator ()
 
 mapJoinable ()
 
- Protected Member Functions inherited from SourcePluginBase
 initializeIterator ()
 
 getModuleHandler ()
 
 getIterator ()
 
 aboveHighwater (Row $row)
 
 rowChanged (Row $row)
 
 getCache ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DrupalSqlBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from SqlBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from ContainerFactoryPluginInterface
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 
- Protected Attributes inherited from DrupalSqlBase
 $systemData
 
 $requirements = TRUE
 
 $entityManager
 
- Protected Attributes inherited from SqlBase
 $query
 
 $database
 
 $state
 
- Protected Attributes inherited from SourcePluginBase
 $moduleHandler
 
 $migration
 
 $highWaterProperty
 
 $currentRow
 
 $currentSourceIds
 
 $originalHighWater
 
 $cacheCounts = FALSE
 
 $cacheKey
 
 $skipCount = FALSE
 
 $trackChanges = FALSE
 
 $mapRowAdded = FALSE
 
 $cache
 
 $idMap
 
 $iterator
 

Detailed Description

The view mode source.

( id = "d6_view_mode", source_provider = "content" )

Member Function Documentation

calculateDependencies ( )

{Calculates dependencies for the configured plugin.Dependencies are saved in the plugin's configuration entity and are used to determine configuration synchronization order. For example, if the plugin integrates with specific user roles, this method should return an array of dependencies listing the specified roles.

Returns
array An array of dependencies grouped by type (config, content, module, theme). For example:
array(
'config' => array('user.role.anonymous', 'user.role.authenticated'),
'content' => array('node:article:f0a189e6-55fb-47fb-8005-5bef81c44d6d'),
'module' => array('node', 'user'),
'theme' => array('seven'),
);
See Also
::getConfigDependencyName()
}

Implements DependentPluginInterface.

References Drupal\entityManager().

Here is the call graph for this function:

fields ( )

{Returns available fields on the source.

Returns
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
}

Implements MigrateSourceInterface.

References t().

Here is the call graph for this function:

getIds ( )

{Defines the source fields uniquely identifying a source row.None of these fields should contain a NULL value. If necessary, use prepareRow() or hook_migrate_prepare_row() to rewrite NULL values to appropriate empty values (such as '' or 0).

Returns
array Array keyed by source field name, with values being a schema array describing the field (such as ['type' => 'string]).
}

Implements MigrateSourceInterface.

initializeIterator ( )
protected

{}

References ViewModeBase\getViewModes(), and SqlBase\prepareQuery().

Here is the call graph for this function:

query ( )

{}

References SqlBase\select().

Here is the call graph for this function:


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