Answers the label for the specified viewport.

@param string $viewport

@return string
163311
public function getViewportLabel($viewport)
    {
        switch ($viewport) {
            case self::VIEWPORT_TINY:
                return _t(__CLASS__ . '.TINY', 'Tiny');
            case self::VIEWPORT_SMALL:
                return _t(__CLASS__ . '.SMALL', 'Small');
            case self::VIEWPORT_MEDIUM:
                return _t(__CLASS__ . '.MEDIUM', 'Medium');
            case self::VIEWPORT_LARGE:
                return _t(__CLASS__ . '.LARGE', 'Large');
            case self::VIEWPORT_HUGE:
                return _t(__CLASS__ . '.HUGE', 'Huge');
        }
    }
711627
private function optimize_viewport( $viewport ){
		$viewport_ary = array();
		$tmp_viewport_ary = explode(',', $viewport);
		foreach($tmp_viewport_ary as $tmp_viewport_row){
			$tmp_viewport_row = trim($tmp_viewport_row);
			if(!strlen($tmp_viewport_row)) {continue;}
			list($tmp_key, $tmp_val) = explode('=', $tmp_viewport_row);
			$viewport_ary[trim($tmp_key)] = trim($tmp_val);
		}

		// AMP仕様による固定値を強制指定
		$viewport_ary['width'] = 'device-width';
		$viewport_ary['minimum-scale'] = '1';

		$tmp_viewport_ary = array();
		foreach( $viewport_ary as $tmp_key=>$tmp_val ){
			array_push($tmp_viewport_ary, $tmp_key.'='.$tmp_val);
		}
		$viewport = implode(',', $tmp_viewport_ary);
		unset($tmp_viewport_ary, $tmp_viewport_row, $tmp_key, $tmp_val);
		return $viewport;
	}
1096703
public function get_label($data) {
        $after  = $data['after'];
        $before = $data['before'];
        $field  = $this->_field;

        $a = new stdClass();
        $a->label  = $this->_label;
        $a->after  = userdate($after);
        $a->before = userdate($before);

        if ($after and $before) {
            return get_string('datelabelisbetween', 'filters', $a);
        } else if ($after) {
            return get_string('datelabelisafter', 'filters', $a);
        } else if ($before) {
            return get_string('datelabelisbefore', 'filters', $a);
        }
        return '';
    }
528139
public function get_label($data) {
        $value = $data['value'];

        $a = new stdClass();
        $a->label    = $this->_label;
        $a->value    = '"'.s($this->_options[$value]).'"';
        $a->operator = get_string('isequalto', 'filters');

        return get_string('selectlabel', 'filters', $a);
    }
298647
public function getBindedLabel($row = [])
    {
        $bind = isset($row[$this->getName()]) ? $row[$this->getName()] : false;
        return sprintf($this->getLabel(), $bind);
    }
737985
public function getViewPath($view)
    {
        if ($view instanceof View) {
            return $view->getPath();
        }

        if (strpos($view, '::') !== false) {
            return $view;
        }

        return $this->getViewNamespace().'.'.$view;
    }
974046
public function getLabel() : ?string 
    {
        if ( ! $this->hasLabel()) {
            $this->setLabel($this->getDefaultLabel());
        }
        return $this->label;
    }
435372
public function getImageAlignmentClass($viewport, $value)
    {
        if ($value) {
            
            $class = [$this->getStyle('image')];
            
            $class[] = $this->getStyle('viewport', $viewport);
            
            $class[] = $this->getStyle('align', $value);
            
            return implode('-', array_filter($class));
            
        }
    }
20033
public function getLabel(\n2n\l10n\N2nLocale $n2nLocale): string {
		return $this->decorated->getLabel($n2nLocale);
	}
316423
public function get_label($strict = false)
	{
		if ($this->label === null && $strict !== true)
		{
			return $this->get_term();
		}
		return $this->label;
	}
916707
public static function getViewPath(string $append = null): string
    {
        if ($append === null) {
            return static::$viewPath;
        } else {
            return str_replace(DS . DS, DS, static::$viewPath . $append);
        }
    }
1214294
public function label()
    {
        if ($this->label_translated) {
            return cms_trans($this->label_translated);
        }

        if ($this->label) {
            return $this->label;
        }

        return ucfirst(str_replace('_', ' ', snake_case($this->key)));
    }
104711
public function getTextAlignmentClass($viewport, $value)
    {
        if ($value) {
            
            $class = [$this->getStyle('text')];
            
            $class[] = $this->getStyle('viewport', $viewport);
            
            $class[] = $this->getStyle('align', $value);
            
            return implode('-', array_filter($class));
            
        }
    }
1372689
public function label($label=null){
		if($label){
			$this->label = $label;
		}else{
			return isset($this->label) ? $this->label : $this->name();
		}
	}
1140009
protected function getSpanClass($viewport, $value)
    {
        if ($value) {
            
            $class = [$this->spanPrefix];
            
            $class[] = $this->grid()->getStyle('viewport', $viewport);
            
            if ($value != 'fill') {
                $class[] = $value;
            }
            
            return implode('-', array_filter($class));
            
        }
    }
912443
public function label() {
		$output = null;
		if ( ! empty( $this->struct['label'] ) ) {
			$output .= '<span class="uix-text">' . esc_html( $this->struct['label'] ) . '</span>';
		}

		return $output;
	}
40740
public function getFormLabel($domain=null)
    {
        $form = $this->getForm();
        $translationDomain = !is_null($domain) ? $domain : 'forms';
        $translator = $form->getTranslator();

        $id = $form->getName();
        if ($form instanceof FormCollectionInterface) {
            if (!is_int($this->getEntityContainer()->getName())) {
                $id .= '.' . $this->getEntityContainer()->getName();
            }
        }
        $id .= '.' . $this->getName();

        return $translator->trans($id, array(), $translationDomain);
    }