: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Helper class that provides necessary functions for managing Sizing option
* Class ET_Builder_Module_Helper_Sizing
abstract class ET_Builder_Module_Helper_Sizing {
* @var string The prefix string that may be added to field name
* Return raw field name to create the field
abstract public function get_raw_field();
public function __construct( $prefix = '' ) {
* Returns sizing options fields prefix
public function get_prefix() {
* Returns field name of the sizing option
public function get_field() {
return $this->get_prefix() . $this->get_raw_field();
* Check if the sizing feature option is enabled
public function is_enabled() {
public function get_value( array $props, $default = '' ) {
return (string) et_()->array_get( $props, $this->get_field(), $default );