Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078

This commit is contained in:
Pantheon Automation 2015-11-04 11:11:27 -08:00 committed by Greg Anderson
parent 6419a031d7
commit 4afb23bbd3
762 changed files with 20080 additions and 6368 deletions

View file

@ -37,7 +37,7 @@ class CSRFAccessCheck implements AccessCheckInterface {
}
/**
* Implements AccessCheckInterface::applies().
* {@inheritdoc}
*/
public function applies(Route $route) {
$requirements = $route->getRequirements();

View file

@ -36,28 +36,28 @@ class LinkManager implements LinkManagerInterface {
}
/**
* Implements \Drupal\rest\LinkManager\TypeLinkManagerInterface::getTypeUri().
* {@inheritdoc}
*/
public function getTypeUri($entity_type, $bundle, $context = array()) {
return $this->typeLinkManager->getTypeUri($entity_type, $bundle, $context);
}
/**
* Implements \Drupal\rest\LinkManager\TypeLinkManagerInterface::getTypeInternalIds().
* {@inheritdoc}
*/
public function getTypeInternalIds($type_uri, $context = array()) {
return $this->typeLinkManager->getTypeInternalIds($type_uri, $context);
}
/**
* Implements \Drupal\rest\LinkManager\RelationLinkManagerInterface::getRelationUri().
* {@inheritdoc}
*/
public function getRelationUri($entity_type, $bundle, $field_name, $context = array()) {
return $this->relationLinkManager->getRelationUri($entity_type, $bundle, $field_name, $context);
}
/**
* Implements \Drupal\rest\LinkManager\RelationLinkManagerInterface::getRelationInternalIds().
* {@inheritdoc}
*/
public function getRelationInternalIds($relation_uri) {
return $this->relationLinkManager->getRelationInternalIds($relation_uri);

View file

@ -70,7 +70,7 @@ class TypeLinkManager extends LinkManagerBase implements TypeLinkManagerInterfac
}
/**
* Implements \Drupal\rest\LinkManager\TypeLinkManagerInterface::getTypeInternalIds().
* {@inheritdoc}
*/
public function getTypeInternalIds($type_uri, $context = array()) {
$types = $this->getTypes($context);

View file

@ -52,7 +52,7 @@ class EntityDeriver implements ContainerDeriverInterface {
}
/**
* Implements DerivativeInterface::getDerivativeDefinition().
* {@inheritdoc}
*/
public function getDerivativeDefinition($derivative_id, $base_plugin_definition) {
if (!isset($this->derivatives)) {
@ -64,7 +64,7 @@ class EntityDeriver implements ContainerDeriverInterface {
}
/**
* Implements DerivativeInterface::getDerivativeDefinitions().
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
if (!isset($this->derivatives)) {

View file

@ -93,7 +93,7 @@ abstract class ResourceBase extends PluginBase implements ContainerFactoryPlugin
}
/**
* Implements ResourceInterface::routes().
* {@inheritdoc}
*/
public function routes() {
$collection = new RouteCollection();
@ -169,7 +169,7 @@ abstract class ResourceBase extends PluginBase implements ContainerFactoryPlugin
}
/**
* Implements ResourceInterface::availableMethods().
* {@inheritdoc}
*/
public function availableMethods() {
$methods = $this->requestMethods();

View file

@ -40,7 +40,7 @@ class ResourcePluginManager extends DefaultPluginManager {
}
/**
* Overrides Drupal\Component\Plugin\PluginManagerBase::getInstance().
* {@inheritdoc}
*/
public function getInstance(array $options){
if (isset($options['id'])) {

View file

@ -37,27 +37,27 @@ use Symfony\Component\Routing\RouteCollection;
class RestExport extends PathPluginBase implements ResponseDisplayPluginInterface {
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::$usesAJAX.
* {@inheritdoc}
*/
protected $usesAJAX = FALSE;
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::$usesPager.
* {@inheritdoc}
*/
protected $usesPager = FALSE;
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::$usesMore.
* {@inheritdoc}
*/
protected $usesMore = FALSE;
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::$usesAreas.
* {@inheritdoc}
*/
protected $usesAreas = FALSE;
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::$usesAreas.
* {@inheritdoc}
*/
protected $usesOptions = FALSE;

View file

@ -24,12 +24,12 @@ use Drupal\views\Plugin\views\row\RowPluginBase;
class DataEntityRow extends RowPluginBase {
/**
* Overrides \Drupal\views\Plugin\Plugin::$usesOptions.
* {@inheritdoc}
*/
protected $usesOptions = FALSE;
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::render().
* {@inheritdoc}
*/
public function render($row) {
return $row->_entity;

View file

@ -27,7 +27,7 @@ use Drupal\views\Plugin\views\row\RowPluginBase;
class DataFieldRow extends RowPluginBase {
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::$usesFields.
* {@inheritdoc}
*/
protected $usesFields = TRUE;
@ -46,7 +46,7 @@ class DataFieldRow extends RowPluginBase {
protected $rawOutputOptions = array();
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::init().
* {@inheritdoc}
*/
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
@ -62,7 +62,7 @@ class DataFieldRow extends RowPluginBase {
}
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
* {@inheritdoc}
*/
protected function defineOptions() {
$options = parent::defineOptions();
@ -72,7 +72,7 @@ class DataFieldRow extends RowPluginBase {
}
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
* {@inheritdoc}
*/
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
@ -118,7 +118,7 @@ class DataFieldRow extends RowPluginBase {
}
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::validateOptionsForm().
* {@inheritdoc}
*/
public function validateOptionsForm(&$form, FormStateInterface $form_state) {
// Collect an array of aliases to validate.
@ -132,7 +132,7 @@ class DataFieldRow extends RowPluginBase {
}
/**
* Overrides \Drupal\views\Plugin\views\row\RowPluginBase::render().
* {@inheritdoc}
*/
public function render($row) {
$output = array();

View file

@ -29,12 +29,12 @@ use Symfony\Component\Serializer\SerializerInterface;
class Serializer extends StylePluginBase implements CacheableDependencyInterface {
/**
* Overrides \Drupal\views\Plugin\views\style\StylePluginBase::$usesRowPlugin.
* {@inheritdoc}
*/
protected $usesRowPlugin = TRUE;
/**
* Overrides Drupal\views\Plugin\views\style\StylePluginBase::$usesFields.
* {@inheritdoc}
*/
protected $usesGrouping = FALSE;

View file

@ -49,7 +49,10 @@ class CollectRoutesTest extends UnitTestCase {
'view',
));
$view_executable = $this->getMock('\Drupal\views\ViewExecutable', array('initHandlers'), array(), '', FALSE);
$view_executable = $this->getMock('\Drupal\views\ViewExecutable', array('initHandlers', 'getTitle'), array(), '', FALSE);
$view_executable->expects($this->any())
->method('getTitle')
->willReturn('View title');
$view_executable->storage = $this->view;
$view_executable->argument = array();