Issue #1817554 by damiankloip: Review and improve naming of entity specific row plugins.
parent
d3728cbf1b
commit
9b3466349f
|
@ -2,12 +2,12 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\comment\Plugin\views\row\View.
|
||||
* Definition of Drupal\comment\Plugin\views\row\CommentRow.
|
||||
*/
|
||||
|
||||
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\Translation;
|
||||
|
||||
|
@ -25,7 +25,7 @@ use Drupal\Core\Annotation\Translation;
|
|||
* type = "normal"
|
||||
* )
|
||||
*/
|
||||
class View extends Entity {
|
||||
class CommentRow extends EntityRow {
|
||||
|
||||
/**
|
||||
* Overrides Drupal\system\Plugin\views\row\Entity::defineOptions().
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\node\Plugin\views\row\View.
|
||||
* Definition of Drupal\node\Plugin\views\row\NodeRow.
|
||||
*/
|
||||
|
||||
namespace Drupal\node\Plugin\views\row;
|
||||
|
@ -10,7 +10,7 @@ namespace Drupal\node\Plugin\views\row;
|
|||
use Drupal\views\ViewExecutable;
|
||||
use Drupal\Core\Annotation\Plugin;
|
||||
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.
|
||||
|
@ -29,7 +29,7 @@ use Drupal\system\Plugin\views\row\Entity;
|
|||
* type = "normal"
|
||||
* )
|
||||
*/
|
||||
class View extends Entity {
|
||||
class NodeRow extends EntityRow {
|
||||
|
||||
/**
|
||||
* Overrides Drupal\system\Plugin\views\row\Entity::defineOptions().
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\search\Plugin\views\row\View.
|
||||
* Definition of Drupal\search\Plugin\views\row\SearchRow.
|
||||
*/
|
||||
|
||||
namespace Drupal\search\Plugin\views\row;
|
||||
|
@ -21,7 +21,7 @@ use Drupal\Core\Annotation\Translation;
|
|||
* no_uid = TRUE
|
||||
* )
|
||||
*/
|
||||
class View extends RowPluginBase {
|
||||
class SearchRow extends RowPluginBase {
|
||||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\system\Plugin\views\row\Entity.
|
||||
* Definition of Drupal\system\Plugin\views\row\EntityRow.
|
||||
*/
|
||||
|
||||
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.
|
||||
*/
|
||||
class Entity extends RowPluginBase {
|
||||
protected $entityInfo1;
|
||||
class EntityRow extends RowPluginBase {
|
||||
|
||||
/**
|
||||
* The table the entity is using for storage.
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\user\Plugin\views\row\View
|
||||
* Definition of Drupal\user\Plugin\views\row\UserRow.
|
||||
*/
|
||||
|
||||
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\Translation;
|
||||
|
||||
|
@ -26,7 +26,7 @@ use Drupal\Core\Annotation\Translation;
|
|||
* type = "normal"
|
||||
* )
|
||||
*/
|
||||
class View extends Entity {
|
||||
class UserRow extends EntityRow {
|
||||
|
||||
/**
|
||||
* Overrides Drupal\system\Plugin\views\row\Entity::defineOptions().
|
Loading…
Reference in New Issue