You are here

protected function FormatRowToXml::hasAttribute in Views OAI-PMH 8

Parameters

$alias:

Return value

array|bool

1 call to FormatRowToXml::hasAttribute()
FormatRowToXml::transform in src/Service/FormatRowToXml.php
Transform views rows data to array composer for xml for this view row

File

src/Service/FormatRowToXml.php, line 248

Class

FormatRowToXml

Namespace

Drupal\views_oai_pmh\Service

Code

protected function hasAttribute($alias) {
  $att = explode('@', $alias);
  if (count($att) > 1) {
    return $att;
  }
  return FALSE;
}