Issue #1817554 by damiankloip: Review and improve naming of entity specific row plugins.

8.0.x
webchick 2012-10-23 15:53:04 -07:00
parent d3728cbf1b
commit 9b3466349f
5 changed files with 13 additions and 14 deletions

View File

@ -2,12 +2,12 @@
/** /**
* @file * @file
* Definition of Drupal\comment\Plugin\views\row\View. * Definition of Drupal\comment\Plugin\views\row\CommentRow.
*/ */
namespace Drupal\comment\Plugin\views\row; namespace Drupal\comment\Plugin\views\row;
use Drupal\system\Plugin\views\row\Entity; use Drupal\system\Plugin\views\row\EntityRow;
use Drupal\Core\Annotation\Plugin; use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation; use Drupal\Core\Annotation\Translation;
@ -25,7 +25,7 @@ use Drupal\Core\Annotation\Translation;
* type = "normal" * type = "normal"
* ) * )
*/ */
class View extends Entity { class CommentRow extends EntityRow {
/** /**
* Overrides Drupal\system\Plugin\views\row\Entity::defineOptions(). * Overrides Drupal\system\Plugin\views\row\Entity::defineOptions().

View File

@ -2,7 +2,7 @@
/** /**
* @file * @file
* Definition of Drupal\node\Plugin\views\row\View. * Definition of Drupal\node\Plugin\views\row\NodeRow.
*/ */
namespace Drupal\node\Plugin\views\row; namespace Drupal\node\Plugin\views\row;
@ -10,7 +10,7 @@ namespace Drupal\node\Plugin\views\row;
use Drupal\views\ViewExecutable; use Drupal\views\ViewExecutable;
use Drupal\Core\Annotation\Plugin; use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation; use Drupal\Core\Annotation\Translation;
use Drupal\system\Plugin\views\row\Entity; use Drupal\system\Plugin\views\row\EntityRow;
/** /**
* Plugin which performs a node_view on the resulting object. * Plugin which performs a node_view on the resulting object.
@ -29,7 +29,7 @@ use Drupal\system\Plugin\views\row\Entity;
* type = "normal" * type = "normal"
* ) * )
*/ */
class View extends Entity { class NodeRow extends EntityRow {
/** /**
* Overrides Drupal\system\Plugin\views\row\Entity::defineOptions(). * Overrides Drupal\system\Plugin\views\row\Entity::defineOptions().

View File

@ -2,7 +2,7 @@
/** /**
* @file * @file
* Definition of Drupal\search\Plugin\views\row\View. * Definition of Drupal\search\Plugin\views\row\SearchRow.
*/ */
namespace Drupal\search\Plugin\views\row; namespace Drupal\search\Plugin\views\row;
@ -21,7 +21,7 @@ use Drupal\Core\Annotation\Translation;
* no_uid = TRUE * no_uid = TRUE
* ) * )
*/ */
class View extends RowPluginBase { class SearchRow extends RowPluginBase {
protected function defineOptions() { protected function defineOptions() {
$options = parent::defineOptions(); $options = parent::defineOptions();

View File

@ -2,7 +2,7 @@
/** /**
* @file * @file
* Definition of Drupal\system\Plugin\views\row\Entity. * Definition of Drupal\system\Plugin\views\row\EntityRow.
*/ */
namespace Drupal\system\Plugin\views\row; namespace Drupal\system\Plugin\views\row;
@ -13,8 +13,7 @@ use Drupal\views\ViewExecutable;
/** /**
* Generic entity row plugin to provide a common base for all entity types. * Generic entity row plugin to provide a common base for all entity types.
*/ */
class Entity extends RowPluginBase { class EntityRow extends RowPluginBase {
protected $entityInfo1;
/** /**
* The table the entity is using for storage. * The table the entity is using for storage.

View File

@ -2,12 +2,12 @@
/** /**
* @file * @file
* Definition of Drupal\user\Plugin\views\row\View * Definition of Drupal\user\Plugin\views\row\UserRow.
*/ */
namespace Drupal\user\Plugin\views\row; namespace Drupal\user\Plugin\views\row;
use Drupal\system\Plugin\views\row\Entity; use Drupal\system\Plugin\views\row\EntityRow;
use Drupal\Core\Annotation\Plugin; use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation; use Drupal\Core\Annotation\Translation;
@ -26,7 +26,7 @@ use Drupal\Core\Annotation\Translation;
* type = "normal" * type = "normal"
* ) * )
*/ */
class View extends Entity { class UserRow extends EntityRow {
/** /**
* Overrides Drupal\system\Plugin\views\row\Entity::defineOptions(). * Overrides Drupal\system\Plugin\views\row\Entity::defineOptions().