Get labels.

@return array
190314
public function getLabels()
    {
        return [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'add_new' => 'Add New'.' '.$this->singular,
            'add_new_item' => 'Add New'.' '.$this->singular,
            'edit_item' => 'Edit'.' '.$this->singular,
            'new_item' => 'New'.' '.$this->singular,
            'all_items' => 'All'.' '.$this->plural,
            'view_item' => 'View'.' '.$this->singular,
            'search_items' => 'Search'.' '.$this->plural,
            'not_found' => $this->plural.' '.'no found',
            'not_found_in_trash' => $this->plural.' '.'no found in Trash',
            'parent_item_colon' => '',
            'menu_name' => $this->plural,
        ];
    }
103064
public function label()
    {
        $list = self::listStatus();

        return isset($list[$this->status])
            ? $list[$this->status]
            : $this->status;
    }
958749
public function getLabel()
    {
        if (empty($this->labels)) {
            return;
        }
        reset($this->labels);

        return current($this->labels);
    }
91007
public function createLabels()
    {
        // default labels
        $labels = [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'menu_name' => $this->plural,
            'all_items' => $this->plural,
            'add_new' => "Add New",
            'add_new_item' => "Add New {$this->singular}",
            'edit_item' => "Edit {$this->singular}",
            'new_item' => "New {$this->singular}",
            'view_item' => "View {$this->singular}",
            'search_items' => "Search {$this->plural}",
            'not_found' => "No {$this->plural} found",
            'not_found_in_trash' => "No {$this->plural} found in Trash",
            'parent_item_colon' => "Parent {$this->singular}:",
        ];

        return array_replace_recursive($labels, $this->labels);
    }
981086
public function getOptions()
    {
        $options = [];
        foreach ($this->toOptionArray() as $values) {
            $options[$values['value']] = __($values['label']);
        }
        return $options;
    }
974046
public function getLabel() : ?string 
    {
        if ( ! $this->hasLabel()) {
            $this->setLabel($this->getDefaultLabel());
        }
        return $this->label;
    }
66777
public function getLabel() {
        if ($this->label) {
            return $this->translate($this->label);
        }
        $labels = array();
        if ($this->form->model && is_string($this->form->model)) {
            $class = $this->form->model;
            $labels = $class::getLabels();
        } elseif ($this->form->model && is_object($this->form->model)) {
            $class = get_class($this->form->model);
            $labels = $class::getLabels();
        }
        if (isset($labels[$this->name])) {
            return $this->translate($labels[$this->name]);
        }
        return $this->translate(ucwords(str_replace('_', ' ', $this->name)));
    }
12914
protected function getLocaleChoices()
    {
        $locale = [];

        foreach ($this->languages as $language) {
            $locale[$language['label']] = $language['locale'];
        }

        return $locale;
    }
190831
public function getBeginEndPreferredLabelPairs()
	{
		$result = parent::getBeginEndPreferredLabelPairs();
		$result[] = array(
			self::$originallyStatedLabel,
			XBRL_Constants::$labelRoleRestatedLabel,
		);
		$result[] = array(
			// self::$originallyStatedLabel,
			XBRL_Constants::$labelRoleVerboseLabel,
		);

		return $result;
	}
333933
protected function getContentTagsList()
    {
        $ret = [];

        if (!$this->labelManager) {
            return;
        }

        $tagList = $this->labelManager->loadAllLabels();

        if ($tagList) {
            foreach ($tagList as $tag) {
                $ret[$tag->tid] = $tag->name;
            }
        }

        return $ret;
    }
1312769
public static function getLabels()
    {
        if(!file_exists(accioPath('resources/lang/'.App::getLocale()))) {
            return json_encode([]);
        }

        // Load Project translation files
        $translationFiles = File::files(accioPath('resources/lang/'.App::getLocale())); //@TODO check if it produces errors, Faton

        $labels = [];
        foreach ($translationFiles as $file) {
            $fileName = str_replace('.php', '', $file->getFilename());
            $labels[$fileName] = File::getRequire($file->getPathName());
        }

        // Load plugin translations
        $labels += Plugin::getAllLabels();

        return $labels;
    }
1321011
public function toArray()
    {
        return [
            'name' => $this->name,
            'labels' => $this->labelsToRaw($this->getLabels()),
            'html-type' => $this->htmlType,
            'css-class' => $this->cssClass,
            'options' => $this->optionsToRaw($this->getOptions()),
            'html-value' => $this->htmlValue,
            'validation' => implode('|', $this->validationRules),
            'is-on-index' => $this->isOnIndexView,
            'is-on-show' => $this->isOnShowView,
            'is-on-form' => $this->isOnFormView,
            'data-type' => $this->getRawDataType(),
            'data-type-params' => $this->methodParams,
            'data-value' => $this->dataValue,
            'is-index' => $this->isIndex,
            'is-unique' => $this->isUnique,
            'is-primary' => $this->isPrimary,
            'comment' => $this->comment,
            'is-nullable' => $this->isNullable(),
            'is-header' => $this->isHeader,
            'is-unsigned' => $this->isUnsigned,
            'is-auto-increment' => $this->isAutoIncrement,
            'is-inline-options' => $this->isInlineOptions,
            'is-date' => $this->isDate,
            'date-format' => $this->dateFormat,
            'cast-as' => $this->castAs,
            'placeholder' => $this->labelsToRaw($this->getPlaceholders()),
            'delimiter' => $this->optionsDelimiter,
            'range' => $this->range,
            'foreign-relation' => $this->getForeignRelationToRaw(),
            'foreign-constraint' => $this->getForeignConstraintToRaw(),
            'on-store' => $this->onStore,
            'on-update' => $this->onUpdate,
        ];
    }
407965
private function getBiggestLabels($reversed = false) {
        $searchLR = $reversed ? 1 : 0;
        $searchTB = $reversed ? 0 : 1;

        $labels = array();
        foreach ($this->labels as $label) {
            $position = $label->getPosition();
            if (isset($labels[$position])) {
                $savedDimension = $labels[$position]->getDimension();
                $dimension = $label->getDimension();
                if ($position === CINLabel::POSITION_LEFT || $position === CINLabel::POSITION_RIGHT) {
                    if ($dimension[$searchLR] > $savedDimension[$searchLR]) {
                        $labels[$position] = $label;
                    }
                } else {
                    if ($dimension[$searchTB] > $savedDimension[$searchTB]) {
                        $labels[$position] = $label;
                    }
                }
            } else {
                $labels[$position] = $label;
            }
        }

        return $labels;
    }
1176086
protected function getLabel()
	{
		if ($this->label !== false && !in_array($this->type, array('checkbox', 'radio')) && $this->hasModel())
			return $this->form->labelEx($this->model, $this->attribute, $this->labelOptions);
		else if ($this->label !== null)
			return $this->label;
		else
			return '';
	}
27565
public static function get_post_types() {
		$items = [];

		// Get the post types.
		$post_types = get_post_types(
			[
				'public' => true,
			],
			'objects'
		);

		// Build the array.
		foreach ( $post_types as $post_type ) {
			$items[ $post_type->name ] = $post_type->labels->name;
		}

		return $items;
	}
734835
public function getLabel() {
        $label = $this->label;
        if ($this->label === self::AUTO_LABEL) {
            $label = $this->text;
            if ($this->displayChecksum === true && ($checksum = $this->processChecksum()) !== false) {
                $label .= $checksum;
            }
        }

        return $label;
    }
612710
public function getLabel()
    {
        if ($this->label)
            return $this->label;
        return $this->dataProvider->getLabel($this->name);
    }