public function ShippingMethodListBuilder::buildHeader in Commerce Shipping 8.2
Builds the header row for the entity listing.
Return value
array A render array structure of header strings.
Overrides EntityListBuilder::buildHeader
See also
\Drupal\Core\Entity\EntityListBuilder::render()
1 call to ShippingMethodListBuilder::buildHeader()
- ShippingMethodListBuilder::buildForm in src/
ShippingMethodListBuilder.php - Form constructor.
File
- src/
ShippingMethodListBuilder.php, line 96
Class
- ShippingMethodListBuilder
- Defines the list builder for shipping methods.
Namespace
Drupal\commerce_shippingCode
public function buildHeader() {
$header['name'] = $this
->t('Name');
$header['status'] = $this
->t('Enabled');
if ($this->hasTableDrag) {
$header['weight'] = $this
->t('Weight');
}
return $header + parent::buildHeader();
}