Attributes to add to an element
@return array
543718
public function getTooltipAttributes():array
    {
        if ($this->tooltip !== null) {
            $attrs = $this->tooltipOptions;
            $attrs['data-toggle'] = 'tooltip';
            $attrs['title'] = $this->tooltip;
            return $attrs;
        }
        return [];
    }
42510
public static function build_html_attributes( $attributes ) {
		$html = [];

		foreach ( (array) $attributes as $key => $value ) {
			$element = static::build_attribute_element( $key, $value );

			if ( ! is_null( $element ) ) {
				$html[] = $element;
			}
		}

		return count( $html ) > 0 ? ' ' . implode( ' ', $html ) : '';
	}
172564
public function getLinkAttributes()
    {
        $attributes = [
            'href' => $this->owner->Link,
            'title' => $this->owner->LinkTitle
        ];
        
        if ($class = $this->owner->LinkClass) {
            $attributes['class'] = $class;
        }
        
        if ($this->owner->OpenLinkInNewTab) {
            $attributes['target'] = '_blank';
        }
        
        return $attributes;
    }
947928
public function attributes()
    {
        $def = $this->definition();
        $attrs = array_keys( $def["fields"] );
        if ( isset( $def["function_attributes"] ) )
            $attrs = array_unique( array_merge( $attrs, array_keys( $def["function_attributes"] ) ) );
        if ( isset( $def["functions"] ) )
            $attrs = array_unique( array_merge( $attrs, array_keys( $def["functions"] ) ) );
        return $attrs;
    }
1321048
protected function getAttributes()
    {
        $attributes = [];
        $this->moveToFirstAttribute();

        do {
            $attributes[$this->name] = $this->value;
        } while ($this->moveToNextAttribute());

        return $attributes;
    }
1141120
public function getMenuAttributes():array
    {
        if ($this->menu !== null) {
            $attrs = [];
            if ($this->menu->getOrientationClass() == 'dropdown') {
                $attrs['id'] = $this->menu->getLabelledBy();
            }
            $attrs['data-toggle']   = 'dropdown';
            $attrs['aria-haspopup'] = 'true';
            $attrs['aria-expanded'] = 'false';
            return $attrs;
        }
        return [];
    }
158085
public function getAttributes()
    {
        $attributes = $this->attributes ? $this->attributes : [];

        array_forget($attributes, ['active', 'icon']);

        return HTML::attributes($attributes);
    }
900729
public function getAttributes(): array
    {
        $attributes = $this->tag->getAttributes();
        foreach ($attributes as $name => $info) {
            $attributes[$name] = $info['value'];
        }

        return $attributes;
    }
12396
public function getAttributes()
    {
        $result = [];
        foreach ($this->element->getAttributes() as $attribute => $value) {
            if (null === $value) {
                $result[] = $attribute;
                continue;
            }

            $result[] = "{$attribute}=\"{$value}\"";
        }
        return implode(' ', $result);
    }
1205941
public function attributes()
    {
        $getters = $this->getters;
        array_walk(
            $getters,
            static function ($methodName) {
                return lcfirst(substr($methodName, 3));
            }
        );

        return array_keys($this->properties + $getters);
    }
1257051
public function getAttributes()
    {
        return [
            Attributes\IdAttribute::make(),
            AmethystAttributes\CountryAttribute::make()
                ->setRequired(true),
            AmethystAttributes\ZipCodeAttribute::make()
                ->setRequired(true),
            Attributes\TextAttribute::make('street')
                ->setRequired(true),
            Attributes\TextAttribute::make('province')
                ->setRequired(true),
            Attributes\TextAttribute::make('city')
                ->setRequired(true),
            Attributes\CreatedAtAttribute::make(),
            Attributes\UpdatedAtAttribute::make(),
            Attributes\DeletedAtAttribute::make(),
        ];
    }
737386
protected function getAttributes()
    {
        $rows = [];
        if ($this->hasLaravel() === true) {
            $session = $this->laravel['session'];
            $rows = [
                'sessionId' => $session->getId(),
                'sessionConfig' => $session->getSessionConfig(),
                'laravelSession' => $session->all(),
            ];
        }

        if (session_status() === PHP_SESSION_ACTIVE) {
            $rows['nativeSessionId'] = session_id();
            $rows['nativeSession'] = $_SESSION;
        }

        return compact('rows');
    }
1002719
public function getAttributes()
    {
        $attributes = array_merge(
            parent::getAttributes(),
            [
                'data-depth' => $this->Depth,
                'data-zoom' => $this->Zoom,
                'data-zoom-min' => $this->ZoomMin,
                'data-zoom-max' => $this->ZoomMax,
                'data-canvas' => $this->CanvasCSSID,
                'data-tag-list' => $this->TagListID,
                'data-color-text' => $this->ColorText,
                'data-color-outline' => $this->ColorOutline,
                'data-weight-size-min' => $this->WeightSizeMin,
                'data-weight-size-max' => $this->WeightSizeMax,
                'data-initial' => $this->Initial,
                'data-weight' => $this->dbObject('Weight')->NiceAsBoolean()
            ]
        );
        
        return $attributes;
    }
406859
public function getAttributeLabels()
    {
        $labels = [];
        foreach ($this->getAttributes() as $attribute => $value) {
            $labels[$attribute] = $this->getAttributeLabel($attribute);
        }
        return $labels;
    }
906888
public function attributes(): array
    {
        $languages = TransHelper::getAllLanguages();
        $translatedAttributes = ['name', 'slug'];

        $placeholder = 'for language ":lang"';

        if ($languages->count() == 1) {
            $language = $languages->first();

            return [
                "translations.{$language->iso_code}.name" => '',
                "translations.{$language->iso_code}.slug" => '',
            ];
        }

        $attributes = [];

        foreach ($translatedAttributes as $translatedAttribute) {
            foreach ($languages as $language) {
                $replaced = str_replace(':lang', $language->title_localized, $placeholder);
                $attributes["translations.{$language->iso_code}.{$translatedAttribute}"] = $replaced;
            }
        }

        return $attributes;
    }
555117
public function getDataAttributes()
    {
        $attributes = [
            'data-toggle' => 'popover',
            'data-container' => 'body',
            'data-placement' => $this->getPlacement()
        ];
        
        if (($parent = $this->getParent()) && $parent->ShowTitles) {
            $attributes['data-title'] = $this->Title;
        }
        
        $this->extend('updateDataAttributes', $attributes);
        
        return $attributes;
    }
308307
protected function getAttributes()
    {
        $attributes = [];
        if (is_null($this->userResolver) === false) {
            $attributes['rows'] = call_user_func($this->userResolver);
        } elseif ($this->hasLaravel() === true) {
            $attributes = isset($this->laravel['sentinel']) === true ?
                $this->fromSentinel() : $this->fromGuard();
        }

        return $this->identifier($attributes);
    }