Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/brizy-pro   php

Repository URL to install this package:

Version: 2.3.7 

/ bagrinsergiu / content-placeholder / lib / PlaceholderInterface.php

<?php

namespace BrizyPlaceholders;

interface PlaceholderInterface
{
    const FALLBACK_KEY = '_fallback';

    /**
     * Returns true if the placeholder can return a value for the given placeholder name
     *
     * @param $placeholderName
     *
     * @return mixed
     */
    public function support($placeholderName);


    /**
     * Return the string value that will replace the placeholder name in content
     *
     * @param ContextInterface $context
     * @param ContentPlaceholder $placeholder
     *
     * @return mixed
     */
    public function getValue(ContextInterface $context, ContentPlaceholder $placeholder);

    public function shouldFallbackValue($value, ContextInterface $context, ContentPlaceholder $placeholder);

    public function getFallbackValue(ContextInterface $context, ContentPlaceholder $placeholder);

    /**
     * It should return an unique identifier of the placeholder
     *
     * @return mixed
     */
    public function getUid();
}