Esempio n. 1
0
 /**
  * @return AttributesInterface[]
  *   Objects representing attributes for each TR element.
  * @see BuildContainer::$IndexedRowAttributes
  */
 protected function get_IndexedRowAttributes()
 {
     /** @var Attributes[] $all */
     $all = [];
     foreach ($this->rows->getLeafMap() as $rowName => $iRow) {
         $all[$iRow] = $this->RowAttributes->nameGetAttributes($rowName);
     }
     foreach ($this->RowStripings as $striping) {
         $n = count($striping);
         foreach ($all as $i => $attr) {
             if (isset($striping[$i % $n])) {
                 $all[$i] = $attr->addClass($striping[$i % $n]);
             }
         }
     }
     return $all;
 }