social_lms_integrator-1.0.0-beta4/modules/social_lms_integrator_mail/src/ApplicationMessageListBuilder.php

modules/social_lms_integrator_mail/src/ApplicationMessageListBuilder.php
<?php

namespace Drupal\social_lms_integrator_mail;

use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;

/**
 * Provides a listing of application messages.
 */
class ApplicationMessageListBuilder extends ConfigEntityListBuilder {

  /**
   * {@inheritdoc}
   */
  public function buildHeader() {
    $header['id'] = $this->t('Machine name');
    return $header + parent::buildHeader();
  }

  /**
   * {@inheritdoc}
   */
  public function buildRow(EntityInterface $entity) {
    /** @var \Drupal\social_lms_integrator_mail\ApplicationMessageInterface $entity */
    $row['id'] = $entity->id();
    return $row + parent::buildRow($entity);
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc