Skip to content
Snippets Groups Projects
Commit 16614e81 authored by simon's avatar simon
Browse files

imp: phpqa

parent d0b35718
Branches imp-phpqa
Tags
1 merge request!143imp: phpqa
Pipeline #4619 passed with warnings with stages
in 7 minutes and 56 seconds
......@@ -17,6 +17,7 @@ class TaxshelterBelcotaxListBuilder extends EntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['id'] = $this->t('Taxshelter Belcotax ID');
$header['name'] = $this->t('Name');
return $header + parent::buildHeader();
......@@ -27,6 +28,7 @@ class TaxshelterBelcotaxListBuilder extends EntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\shareholder_register_taxshelter\Entity\TaxshelterBelcotax $entity */
$row = [];
$row['id'] = $entity->id();
$row['name'] = Link::createFromRoute(
$entity->label(),
......
......@@ -17,6 +17,7 @@ class ShareListBuilder extends EntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['name'] = $this->t('Share Number');
$header['par_value'] = $this->t('Par Value');
$header['issue_premium'] = $this->t('Issue Premium');
......@@ -29,7 +30,7 @@ class ShareListBuilder extends EntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\shareholder_register\Entity\Share $entity */
$row = [];
$row['name'] = Link::createFromRoute(
$entity->label(),
'entity.share.canonical',
......
......@@ -17,6 +17,7 @@ class ShareTransactionGroupListBuilder extends EntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['id'] = $this->t('Share Transaction Group ID');
$header['name'] = $this->t('Name');
return $header + parent::buildHeader();
......@@ -27,6 +28,7 @@ class ShareTransactionGroupListBuilder extends EntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\shareholder_register\Entity\ShareTransactionGroup $entity */
$row = [];
$row['id'] = $entity->id();
$row['name'] = Link::createFromRoute(
$entity->label(),
......
......@@ -14,6 +14,7 @@ class ShareTransactionGroupTypeListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['label'] = $this->t('Share Transaction Group type');
$header['id'] = $this->t('Machine name');
return $header + parent::buildHeader();
......@@ -23,9 +24,9 @@ class ShareTransactionGroupTypeListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row = [];
$row['label'] = $entity->label();
$row['id'] = $entity->id();
// You probably want a few more properties here...
return $row + parent::buildRow($entity);
}
......
......@@ -17,6 +17,7 @@ class ShareTypeListBuilder extends EntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['id'] = $this->t('Share type ID');
$header['name'] = $this->t('Name');
return $header + parent::buildHeader();
......@@ -27,6 +28,7 @@ class ShareTypeListBuilder extends EntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\shareholder_register\Entity\ShareType $entity */
$row = [];
$row['id'] = $entity->id();
$row['name'] = Link::createFromRoute(
$entity->label(),
......
......@@ -47,6 +47,7 @@ class ShareholderListBuilder extends EntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['number'] = $this->t('Shareholder Number');
$header['name'] = $this->t('Name');
$header['identifier'] = $this->t('Identifier');
......@@ -65,7 +66,7 @@ class ShareholderListBuilder extends EntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\shareholder_register\Entity\Shareholder $entity */
$row = [];
$row['number'] = $entity->getNumber();
$row['name'] = Link::createFromRoute(
$entity->label(),
......
......@@ -14,6 +14,7 @@ class ShareholderTypeListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header = [];
$header['label'] = $this->t('Shareholder type');
$header['id'] = $this->t('Machine name');
return $header + parent::buildHeader();
......@@ -23,9 +24,9 @@ class ShareholderTypeListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row = [];
$row['label'] = $entity->label();
$row['id'] = $entity->id();
// You probably want a few more properties here...
return $row + parent::buildRow($entity);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment