Drupal 8  8.0.2
Route Class Reference
Inheritance diagram for Route:

Public Member Functions

 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, PathValidatorInterface $path_validator)
 
 transform ($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property)
 
- Public Member Functions inherited from ProcessPluginBase
 transform ($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property)
 
 multiple ()
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Static Public Member Functions

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

 $pathValidator
 

Detailed Description

( id = "route" )

Constructor & Destructor Documentation

__construct ( array  $configuration,
  $plugin_id,
  $plugin_definition,
MigrationInterface  $migration,
PathValidatorInterface  $path_validator 
)

{}

References Drupal\pathValidator().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition,
MigrationInterface  $migration = NULL 
)
static

{}

transform (   $value,
MigrateExecutableInterface  $migrate_executable,
Row  $row,
  $destination_property 
)

{Performs the associated process.

Parameters
mixed$valueThe value to be transformed.
\Drupal\migrate\MigrateExecutableInterface$migrate_executableThe migration in which this process is being executed.
\Drupal\migrate\Row$rowThe row from the source to process. Normally, just transforming the value is adequate but very rarely you might need to change two columns at the same time or something like that.
string$destination_propertyThe destination property currently worked on. This is only used together with the $row above.
Returns
string|array The newly transformed value.
}

Set the destination route information based on the source link_path.

Implements MigrateProcessInterface.

References Drupal\pathValidator().

Here is the call graph for this function:


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